diff options
author | Alex Beregszaszi <alex@rtfs.hu> | 2017-06-14 20:30:34 +0800 |
---|---|---|
committer | Alex Beregszaszi <alex@rtfs.hu> | 2017-06-15 02:51:02 +0800 |
commit | 3273e865ecf5755f8f74d1db3e8bf283de1efe0d (patch) | |
tree | c08e275b65df22485a370a9961d4e78dc40b8a3b /libevmasm/Assembly.cpp | |
parent | f008ddf83646f6002a61a123cc94ad195a35dce4 (diff) | |
download | dexon-solidity-3273e865ecf5755f8f74d1db3e8bf283de1efe0d.tar dexon-solidity-3273e865ecf5755f8f74d1db3e8bf283de1efe0d.tar.gz dexon-solidity-3273e865ecf5755f8f74d1db3e8bf283de1efe0d.tar.bz2 dexon-solidity-3273e865ecf5755f8f74d1db3e8bf283de1efe0d.tar.lz dexon-solidity-3273e865ecf5755f8f74d1db3e8bf283de1efe0d.tar.xz dexon-solidity-3273e865ecf5755f8f74d1db3e8bf283de1efe0d.tar.zst dexon-solidity-3273e865ecf5755f8f74d1db3e8bf283de1efe0d.zip |
Print assembly even if there's no data section
Diffstat (limited to 'libevmasm/Assembly.cpp')
-rw-r--r-- | libevmasm/Assembly.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libevmasm/Assembly.cpp b/libevmasm/Assembly.cpp index ea061a30..72571b56 100644 --- a/libevmasm/Assembly.cpp +++ b/libevmasm/Assembly.cpp @@ -315,8 +315,10 @@ Json::Value Assembly::streamAsmJson(ostream& _out, StringMap const& _sourceCodes data[hexStr.str()] = m_subs[i]->stream(_out, "", _sourceCodes, true); } root[".data"] = data; - _out << root; } + + _out << root; + return root; } |