diff options
author | Alex Beregszaszi <alex@rtfs.hu> | 2017-06-14 20:31:04 +0800 |
---|---|---|
committer | Alex Beregszaszi <alex@rtfs.hu> | 2017-06-15 03:14:15 +0800 |
commit | 585b3ea3e3197e05349c13d24a3d99fba2fee887 (patch) | |
tree | 1913ad7bcb657024c8f5b35bae119198b89b9941 /libevmasm/Assembly.cpp | |
parent | 3273e865ecf5755f8f74d1db3e8bf283de1efe0d (diff) | |
download | dexon-solidity-585b3ea3e3197e05349c13d24a3d99fba2fee887.tar dexon-solidity-585b3ea3e3197e05349c13d24a3d99fba2fee887.tar.gz dexon-solidity-585b3ea3e3197e05349c13d24a3d99fba2fee887.tar.bz2 dexon-solidity-585b3ea3e3197e05349c13d24a3d99fba2fee887.tar.lz dexon-solidity-585b3ea3e3197e05349c13d24a3d99fba2fee887.tar.xz dexon-solidity-585b3ea3e3197e05349c13d24a3d99fba2fee887.tar.zst dexon-solidity-585b3ea3e3197e05349c13d24a3d99fba2fee887.zip |
Print auxiliary data in the assembly
Diffstat (limited to 'libevmasm/Assembly.cpp')
-rw-r--r-- | libevmasm/Assembly.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libevmasm/Assembly.cpp b/libevmasm/Assembly.cpp index 72571b56..f2a292b0 100644 --- a/libevmasm/Assembly.cpp +++ b/libevmasm/Assembly.cpp @@ -216,6 +216,9 @@ ostream& Assembly::streamAsm(ostream& _out, string const& _prefix, StringMap con } } + if (m_auxiliaryData.size() > 0) + _out << endl << _prefix << "auxdata: 0x" << toHex(m_auxiliaryData) << endl; + return _out; } @@ -317,6 +320,9 @@ Json::Value Assembly::streamAsmJson(ostream& _out, StringMap const& _sourceCodes root[".data"] = data; } + if (m_auxiliaryData.size() > 0) + root[".auxdata"] = toHex(m_auxiliaryData); + _out << root; return root; |