diff options
author | Alex Beregszaszi <alex@rtfs.hu> | 2017-05-30 06:58:03 +0800 |
---|---|---|
committer | chriseth <chris@ethereum.org> | 2017-06-09 22:40:14 +0800 |
commit | ca92bda886740f7c59aaf44aaa8a15e25136c9dc (patch) | |
tree | 71d9da8928b660f2f8e89ac45d0c4c29ed177f01 /libsolidity/interface/AssemblyStack.cpp | |
parent | f0d213e6b56da5be8088008bf2ceadb7fd0030f7 (diff) | |
download | dexon-solidity-ca92bda886740f7c59aaf44aaa8a15e25136c9dc.tar.gz dexon-solidity-ca92bda886740f7c59aaf44aaa8a15e25136c9dc.tar.zst dexon-solidity-ca92bda886740f7c59aaf44aaa8a15e25136c9dc.zip |
Supply text representation of assembly
Diffstat (limited to 'libsolidity/interface/AssemblyStack.cpp')
-rw-r--r-- | libsolidity/interface/AssemblyStack.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libsolidity/interface/AssemblyStack.cpp b/libsolidity/interface/AssemblyStack.cpp index 6a5e5494..7dc1edc7 100644 --- a/libsolidity/interface/AssemblyStack.cpp +++ b/libsolidity/interface/AssemblyStack.cpp @@ -91,7 +91,9 @@ MachineAssemblyObject AssemblyStack::assemble(Machine _machine) const eth::Assembly assembly; assembly::CodeGenerator::assemble(*m_parserResult, *m_analysisInfo, assembly); object.bytecode = make_shared<eth::LinkerObject>(assembly.assemble()); - /// TODO: fill out text representation + ostringstream tmp; + assembly.stream(tmp); + object.assembly = tmp.str(); return object; } case Machine::EVM15: |