aboutsummaryrefslogtreecommitdiffstats
path: root/libevmasm
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2017-06-01 21:31:35 +0800
committerAlex Beregszaszi <alex@rtfs.hu>2017-06-15 04:21:26 +0800
commit398099f50eaa7a4862950914054dbe68d0eee67b (patch)
treef3bede0b06c16e0ed2a38c7145695c39622fb397 /libevmasm
parent42b61171d981ceccd5f79af5508db92b4f2ad54b (diff)
downloaddexon-solidity-398099f50eaa7a4862950914054dbe68d0eee67b.tar.gz
dexon-solidity-398099f50eaa7a4862950914054dbe68d0eee67b.tar.zst
dexon-solidity-398099f50eaa7a4862950914054dbe68d0eee67b.zip
Remove obsolete errorTag()
Diffstat (limited to 'libevmasm')
-rw-r--r--libevmasm/Assembly.cpp2
-rw-r--r--libevmasm/Assembly.h1
2 files changed, 1 insertions, 2 deletions
diff --git a/libevmasm/Assembly.cpp b/libevmasm/Assembly.cpp
index ea061a30..de51d230 100644
--- a/libevmasm/Assembly.cpp
+++ b/libevmasm/Assembly.cpp
@@ -40,7 +40,7 @@ void Assembly::append(Assembly const& _a)
auto newDeposit = m_deposit + _a.deposit();
for (AssemblyItem i: _a.m_items)
{
- if (i.type() == Tag || (i.type() == PushTag && i != errorTag()))
+ if (i.type() == Tag || i.type() == PushTag)
i.setData(i.data() + m_usedTags);
else if (i.type() == PushSub || i.type() == PushSubSize)
i.setData(i.data() + m_subs.size());
diff --git a/libevmasm/Assembly.h b/libevmasm/Assembly.h
index 528c9e74..bf7404d2 100644
--- a/libevmasm/Assembly.h
+++ b/libevmasm/Assembly.h
@@ -69,7 +69,6 @@ public:
AssemblyItem appendJumpI() { auto ret = append(newPushTag()); append(solidity::Instruction::JUMPI); return ret; }
AssemblyItem appendJump(AssemblyItem const& _tag) { auto ret = append(_tag.pushTag()); append(solidity::Instruction::JUMP); return ret; }
AssemblyItem appendJumpI(AssemblyItem const& _tag) { auto ret = append(_tag.pushTag()); append(solidity::Instruction::JUMPI); return ret; }
- AssemblyItem errorTag() { return AssemblyItem(PushTag, 0); }
/// Appends @a _data literally to the very end of the bytecode.
void appendAuxiliaryDataToEnd(bytes const& _data) { m_auxiliaryData += _data; }