Introduce assemblyString

This commit is contained in:
Alex Beregszaszi
2017-09-11 15:53:20 +01:00
parent 50570c6c79
commit bbfb16cf5c
10 changed files with 27 additions and 24 deletions
+2 -3
View File
@@ -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)
{