diff options
author | chriseth <c@ethdev.com> | 2017-01-26 00:24:50 +0800 |
---|---|---|
committer | chriseth <c@ethdev.com> | 2017-01-26 00:26:11 +0800 |
commit | a5696e1f0a87a2912cc64d2538751836658e7c63 (patch) | |
tree | 85b9a5d3631f8bc6d99a26aa2d34e179bab3a459 /libsolidity/inlineasm/AsmParser.cpp | |
parent | 27ba665694c4a961e098559cb36176aeafd5ec44 (diff) | |
download | dexon-solidity-a5696e1f0a87a2912cc64d2538751836658e7c63.tar.gz dexon-solidity-a5696e1f0a87a2912cc64d2538751836658e7c63.tar.zst dexon-solidity-a5696e1f0a87a2912cc64d2538751836658e7c63.zip |
Renamed function.
Diffstat (limited to 'libsolidity/inlineasm/AsmParser.cpp')
-rw-r--r-- | libsolidity/inlineasm/AsmParser.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libsolidity/inlineasm/AsmParser.cpp b/libsolidity/inlineasm/AsmParser.cpp index cd3ea0da..048d916d 100644 --- a/libsolidity/inlineasm/AsmParser.cpp +++ b/libsolidity/inlineasm/AsmParser.cpp @@ -130,7 +130,7 @@ assembly::Statement Parser::parseExpression() return operation; } -std::map<string, dev::solidity::Instruction> Parser::getInstructions() +std::map<string, dev::solidity::Instruction> const& Parser::instructions() { // Allowed instructions, lowercase names. static map<string, dev::solidity::Instruction> s_instructions; @@ -156,7 +156,7 @@ std::map<string, dev::solidity::Instruction> Parser::getInstructions() assembly::Statement Parser::parseElementaryOperation(bool _onlySinglePusher) { - map<string, dev::solidity::Instruction> s_instructions = getInstructions(); + map<string, dev::solidity::Instruction> const& s_instructions = instructions(); Statement ret; switch (m_scanner->currentToken()) @@ -178,7 +178,7 @@ assembly::Statement Parser::parseElementaryOperation(bool _onlySinglePusher) // first search the set of instructions. if (s_instructions.count(literal)) { - dev::solidity::Instruction const& instr = s_instructions[literal]; + dev::solidity::Instruction const& instr = s_instructions.at(literal); if (_onlySinglePusher) { InstructionInfo info = dev::solidity::instructionInfo(instr); @@ -210,7 +210,7 @@ assembly::Statement Parser::parseElementaryOperation(bool _onlySinglePusher) assembly::VariableDeclaration Parser::parseVariableDeclaration() { - map<string, dev::solidity::Instruction> s_instructions = getInstructions(); + map<string, dev::solidity::Instruction> const& s_instructions = instructions(); VariableDeclaration varDecl = createWithLocation<VariableDeclaration>(); expectToken(Token::Let); varDecl.name = m_scanner->currentLiteral(); |