aboutsummaryrefslogtreecommitdiffstats
path: root/liblll/Compiler.cpp
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2017-08-30 09:17:15 +0800
committerAlex Beregszaszi <alex@rtfs.hu>2017-09-11 22:53:20 +0800
commitbbfb16cf5ce903150bc3a141ac50553d8bf6d346 (patch)
treea79144b2c970f097f3bd1c8a6b3cdc27d0670ce8 /liblll/Compiler.cpp
parent50570c6c794eee01af64751c884fb6cb68f8dffc (diff)
downloaddexon-solidity-bbfb16cf5ce903150bc3a141ac50553d8bf6d346.tar.gz
dexon-solidity-bbfb16cf5ce903150bc3a141ac50553d8bf6d346.tar.zst
dexon-solidity-bbfb16cf5ce903150bc3a141ac50553d8bf6d346.zip
Introduce assemblyString
Diffstat (limited to 'liblll/Compiler.cpp')
-rw-r--r--liblll/Compiler.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/liblll/Compiler.cpp b/liblll/Compiler.cpp
index f9bd3ab9..b69675aa 100644
--- a/liblll/Compiler.cpp
+++ b/liblll/Compiler.cpp
@@ -72,14 +72,13 @@ std::string dev::eth::compileLLLToAsm(std::string const& _src, bool _opt, std::v
{
CompilerState cs;
cs.populateStandard();
- stringstream ret;
auto assembly = CodeFragment::compile(_src, cs).assembly(cs);
if (_opt)
assembly = assembly.optimise(true);
- assembly.assemblyStream(ret);
+ string ret = assembly.assemblyString();
for (auto i: cs.treesToKill)
killBigints(i);
- return ret.str();
+ return ret;
}
catch (Exception const& _e)
{