From d43d4347bf1e37bb8f114c9df0e2ae62545fbc87 Mon Sep 17 00:00:00 2001 From: Dimitry Date: Mon, 4 Apr 2016 15:27:09 +0400 Subject: return instructionInfo style --- libevmasm/Instruction.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'libevmasm/Instruction.cpp') 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 { -- cgit