aboutsummaryrefslogtreecommitdiffstats
path: root/libevmasm/AssemblyItem.cpp
diff options
context:
space:
mode:
authorDimitry <dimitry@ethdev.com>2016-04-04 19:27:09 +0800
committerDimitry <dimitry@ethdev.com>2016-04-04 19:27:09 +0800
commitd43d4347bf1e37bb8f114c9df0e2ae62545fbc87 (patch)
tree2f8ee0e7ff5c349f42391689796ab8930d0fe1ff /libevmasm/AssemblyItem.cpp
parent98165100658bc4f29e6194f0c5ede6e5b9d516f5 (diff)
downloaddexon-solidity-d43d4347bf1e37bb8f114c9df0e2ae62545fbc87.tar.gz
dexon-solidity-d43d4347bf1e37bb8f114c9df0e2ae62545fbc87.tar.zst
dexon-solidity-d43d4347bf1e37bb8f114c9df0e2ae62545fbc87.zip
return instructionInfo style
Diffstat (limited to 'libevmasm/AssemblyItem.cpp')
-rw-r--r--libevmasm/AssemblyItem.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/libevmasm/AssemblyItem.cpp b/libevmasm/AssemblyItem.cpp
index 2bdc6391..599ded85 100644
--- a/libevmasm/AssemblyItem.cpp
+++ b/libevmasm/AssemblyItem.cpp
@@ -57,7 +57,7 @@ int AssemblyItem::deposit() const
switch (m_type)
{
case Operation:
- return getInstructionInfo(instruction()).ret - getInstructionInfo(instruction()).args;
+ return instructionInfo(instruction()).ret - instructionInfo(instruction()).args;
case Push:
case PushString:
case PushTag:
@@ -93,7 +93,7 @@ ostream& dev::eth::operator<<(ostream& _out, AssemblyItem const& _item)
switch (_item.type())
{
case Operation:
- _out << " " << getInstructionInfo(_item.instruction()).name;
+ _out << " " << instructionInfo(_item.instruction()).name;
if (_item.instruction() == solidity::Instruction::JUMP || _item.instruction() == solidity::Instruction::JUMPI)
_out << "\t" << _item.getJumpTypeAsString();
break;