Remove yul::Instruction.

This commit is contained in:
chriseth
2019-12-19 23:22:19 +01:00
parent d420fe3786
commit 7db88cfedd
8 changed files with 3 additions and 34 deletions
-1
View File
@@ -43,7 +43,6 @@ enum class Instruction: uint8_t;
namespace yul
{
struct Instruction;
struct Identifier;
///
-10
View File
@@ -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);
-1
View File
@@ -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&);