Merge pull request #9317 from ethereum/yul-cleanup

Remove unused instructionNames() function in AsmParser
This commit is contained in:
Alex Beregszaszi
2020-07-06 23:09:09 +01:00
committed by GitHub
2 changed files with 0 additions and 15 deletions
-14
View File
@@ -297,20 +297,6 @@ Expression Parser::parseExpression()
}
}
std::map<evmasm::Instruction, string> const& Parser::instructionNames()
{
static map<evmasm::Instruction, string> s_instructionNames;
if (s_instructionNames.empty())
{
for (auto const& instr: instructions())
s_instructionNames[instr.second] = instr.first;
// set the ambiguous instructions to a clear default
s_instructionNames[evmasm::Instruction::SELFDESTRUCT] = "selfdestruct";
s_instructionNames[evmasm::Instruction::KECCAK256] = "keccak256";
}
return s_instructionNames;
}
Parser::ElementaryOperation Parser::parseElementaryOperation()
{
RecursionGuard recursionGuard(*this);
-1
View File
@@ -86,7 +86,6 @@ protected:
ForLoop parseForLoop();
/// Parses a functional expression that has to push exactly one stack element
Expression parseExpression();
static std::map<evmasm::Instruction, std::string> const& instructionNames();
/// Parses an elementary operation, i.e. a literal, identifier, instruction or
/// builtin functian call (only the name).
ElementaryOperation parseElementaryOperation();