diff options
author | Dimitry <dimitry@ethdev.com> | 2016-04-04 19:27:09 +0800 |
---|---|---|
committer | Dimitry <dimitry@ethdev.com> | 2016-04-04 19:27:09 +0800 |
commit | d43d4347bf1e37bb8f114c9df0e2ae62545fbc87 (patch) | |
tree | 2f8ee0e7ff5c349f42391689796ab8930d0fe1ff /libsolidity/inlineasm/AsmParser.cpp | |
parent | 98165100658bc4f29e6194f0c5ede6e5b9d516f5 (diff) | |
download | dexon-solidity-d43d4347bf1e37bb8f114c9df0e2ae62545fbc87.tar dexon-solidity-d43d4347bf1e37bb8f114c9df0e2ae62545fbc87.tar.gz dexon-solidity-d43d4347bf1e37bb8f114c9df0e2ae62545fbc87.tar.bz2 dexon-solidity-d43d4347bf1e37bb8f114c9df0e2ae62545fbc87.tar.lz dexon-solidity-d43d4347bf1e37bb8f114c9df0e2ae62545fbc87.tar.xz dexon-solidity-d43d4347bf1e37bb8f114c9df0e2ae62545fbc87.tar.zst dexon-solidity-d43d4347bf1e37bb8f114c9df0e2ae62545fbc87.zip |
return instructionInfo style
Diffstat (limited to 'libsolidity/inlineasm/AsmParser.cpp')
-rw-r--r-- | libsolidity/inlineasm/AsmParser.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libsolidity/inlineasm/AsmParser.cpp b/libsolidity/inlineasm/AsmParser.cpp index ae63598d..68050733 100644 --- a/libsolidity/inlineasm/AsmParser.cpp +++ b/libsolidity/inlineasm/AsmParser.cpp @@ -154,7 +154,7 @@ assembly::Statement Parser::parseElementaryOperation(bool _onlySinglePusher) dev::solidity::Instruction const& instr = s_instructions[literal]; if (_onlySinglePusher) { - InstructionInfo info = dev::solidity::getInstructionInfo(instr); + InstructionInfo info = dev::solidity::instructionInfo(instr); if (info.ret != 1) fatalParserError("Instruction " + info.name + " not allowed in this context."); } @@ -200,7 +200,7 @@ FunctionalInstruction Parser::parseFunctionalInstruction(assembly::Statement con if (_instruction.type() != typeid(Instruction)) fatalParserError("Assembly instruction required in front of \"(\")"); solidity::Instruction instr = boost::get<solidity::assembly::Instruction>(_instruction).instruction; - InstructionInfo instrInfo = getInstructionInfo(instr); + InstructionInfo instrInfo = instructionInfo(instr); if (solidity::Instruction::DUP1 <= instr && instr <= solidity::Instruction::DUP16) fatalParserError("DUPi instructions not allowed for functional notation"); if (solidity::Instruction::SWAP1 <= instr && instr <= solidity::Instruction::SWAP16) |