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 /libevmasm/Instruction.cpp | |
parent | 98165100658bc4f29e6194f0c5ede6e5b9d516f5 (diff) | |
download | dexon-solidity-d43d4347bf1e37bb8f114c9df0e2ae62545fbc87.tar.gz dexon-solidity-d43d4347bf1e37bb8f114c9df0e2ae62545fbc87.tar.zst dexon-solidity-d43d4347bf1e37bb8f114c9df0e2ae62545fbc87.zip |
return instructionInfo style
Diffstat (limited to 'libevmasm/Instruction.cpp')
-rw-r--r-- | libevmasm/Instruction.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libevmasm/Instruction.cpp b/libevmasm/Instruction.cpp index e61b8e64..da765c41 100644 --- a/libevmasm/Instruction.cpp +++ b/libevmasm/Instruction.cpp @@ -307,7 +307,7 @@ void dev::solidity::eachInstruction( Instruction instr = Instruction(*it); size_t additional = 0; if (isValidInstruction(instr)) - additional = getInstructionInfo(instr).additional; + additional = instructionInfo(instr).additional; u256 data; for (size_t i = 0; i < additional; ++i) { @@ -327,7 +327,7 @@ string dev::solidity::disassemble(bytes const& _mem) ret << "0x" << hex << int(_instr) << " "; else { - InstructionInfo info = getInstructionInfo(_instr); + InstructionInfo info = instructionInfo(_instr); ret << info.name << " "; if (info.additional) ret << "0x" << hex << _data << " "; @@ -336,7 +336,7 @@ string dev::solidity::disassemble(bytes const& _mem) return ret.str(); } -InstructionInfo dev::solidity::getInstructionInfo(Instruction _inst) +InstructionInfo dev::solidity::instructionInfo(Instruction _inst) { try { |