mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Remove yul::Instruction.
This commit is contained in:
@@ -43,7 +43,6 @@ enum class Instruction: uint8_t;
|
||||
|
||||
namespace yul
|
||||
{
|
||||
struct Instruction;
|
||||
struct Identifier;
|
||||
|
||||
///
|
||||
|
||||
@@ -350,16 +350,6 @@ void CodeTransform::operator()(Literal const& _literal)
|
||||
checkStackHeight(&_literal);
|
||||
}
|
||||
|
||||
void CodeTransform::operator()(yul::Instruction const& _instruction)
|
||||
{
|
||||
yulAssert(!m_allowStackOpt, "");
|
||||
yulAssert(!m_evm15 || _instruction.instruction != dev::eth::Instruction::JUMP, "Bare JUMP instruction used for EVM1.5");
|
||||
yulAssert(!m_evm15 || _instruction.instruction != dev::eth::Instruction::JUMPI, "Bare JUMPI instruction used for EVM1.5");
|
||||
m_assembly.setSourceLocation(_instruction.location);
|
||||
m_assembly.appendInstruction(_instruction.instruction);
|
||||
checkStackHeight(&_instruction);
|
||||
}
|
||||
|
||||
void CodeTransform::operator()(If const& _if)
|
||||
{
|
||||
visitExpression(*_if.condition);
|
||||
|
||||
@@ -170,7 +170,6 @@ protected:
|
||||
void deleteVariable(Scope::Variable const& _var);
|
||||
|
||||
public:
|
||||
void operator()(Instruction const& _instruction);
|
||||
void operator()(Literal const& _literal);
|
||||
void operator()(Identifier const& _identifier);
|
||||
void operator()(FunctionCall const&);
|
||||
|
||||
Reference in New Issue
Block a user