diff options
author | chriseth <c@ethdev.com> | 2017-02-02 04:40:50 +0800 |
---|---|---|
committer | chriseth <c@ethdev.com> | 2017-03-03 22:41:01 +0800 |
commit | 98e343b3fc11f3e94297b016c3f625e3b319b09b (patch) | |
tree | c5ff0283866f2aed81ffafb2cdfc0c58fd9dc828 /libsolidity/inlineasm/AsmPrinter.cpp | |
parent | fd62adebf3e594298c171e43e78153dbefc42759 (diff) | |
download | dexon-solidity-98e343b3fc11f3e94297b016c3f625e3b319b09b.tar.gz dexon-solidity-98e343b3fc11f3e94297b016c3f625e3b319b09b.tar.zst dexon-solidity-98e343b3fc11f3e94297b016c3f625e3b319b09b.zip |
Parsing of labels with stack info.
Diffstat (limited to 'libsolidity/inlineasm/AsmPrinter.cpp')
-rw-r--r-- | libsolidity/inlineasm/AsmPrinter.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/libsolidity/inlineasm/AsmPrinter.cpp b/libsolidity/inlineasm/AsmPrinter.cpp index a70b0b78..5ec83281 100644 --- a/libsolidity/inlineasm/AsmPrinter.cpp +++ b/libsolidity/inlineasm/AsmPrinter.cpp @@ -94,7 +94,11 @@ string AsmPrinter::operator()(assembly::FunctionalInstruction const& _functional string AsmPrinter::operator()(assembly::Label const& _label) { - return _label.name + ":"; + return _label.name + ( + !_label.stackInfo.empty() ? + "[" + boost::algorithm::join(_label.stackInfo, ", ") + "]" : + string() + ) + ":"; } string AsmPrinter::operator()(assembly::Assignment const& _assignment) |