diff options
author | chriseth <chris@ethereum.org> | 2017-04-12 01:53:55 +0800 |
---|---|---|
committer | chriseth <chris@ethereum.org> | 2017-04-12 01:54:44 +0800 |
commit | 4d715e9055f4c7ba7ef86a540dc2e3fbe0fca3a0 (patch) | |
tree | d51facab8f451bde3bffb2b79aa95991b61ca14d /libevmasm/Assembly.cpp | |
parent | bd48f181b588978461fb4651839c62bcac7888d4 (diff) | |
download | dexon-solidity-4d715e9055f4c7ba7ef86a540dc2e3fbe0fca3a0.tar.gz dexon-solidity-4d715e9055f4c7ba7ef86a540dc2e3fbe0fca3a0.tar.zst dexon-solidity-4d715e9055f4c7ba7ef86a540dc2e3fbe0fca3a0.zip |
Implement missing assembly output functions and do not use PushString for assembly.
Diffstat (limited to 'libevmasm/Assembly.cpp')
-rw-r--r-- | libevmasm/Assembly.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libevmasm/Assembly.cpp b/libevmasm/Assembly.cpp index f12e8aa8..ea061a30 100644 --- a/libevmasm/Assembly.cpp +++ b/libevmasm/Assembly.cpp @@ -205,7 +205,8 @@ ostream& Assembly::streamAsm(ostream& _out, string const& _prefix, StringMap con { _out << _prefix << "stop" << endl; for (auto const& i: m_data) - assertThrow(u256(i.first) < m_subs.size(), AssemblyException, "Data not yet implemented."); + if (u256(i.first) >= m_subs.size()) + _out << _prefix << "data_" << toHex(u256(i.first)) << " " << toHex(i.second) << endl; for (size_t i = 0; i < m_subs.size(); ++i) { |