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 /solc | |
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 'solc')
-rw-r--r-- | solc/CommandLineInterface.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/solc/CommandLineInterface.cpp b/solc/CommandLineInterface.cpp index e755c3b5..7509d1f2 100644 --- a/solc/CommandLineInterface.cpp +++ b/solc/CommandLineInterface.cpp @@ -1101,6 +1101,10 @@ bool CommandLineInterface::assemble( cout << object.bytecode->toHex() << endl; else cerr << "No binary representation found." << endl; + if (!object.assembly.empty()) + cout << object.assembly << endl; + else + cerr << "No text representation found." << endl; cout << stack.print() << endl; } |