Support new assembly output

This commit is contained in:
Alex Beregszaszi 2017-03-30 00:54:32 +01:00
parent a87dd17d0f
commit 2df52edfbd

View File

@ -263,9 +263,10 @@ Json::Value StandardCompiler::compileInternal(Json::Value const& _input)
// EVM // EVM
Json::Value evmData(Json::objectValue); Json::Value evmData(Json::objectValue);
// @TODO: add ir // @TODO: add ir
// @TODO: add assembly ostringstream tmp;
ostringstream unused; m_compilerStack.streamAssembly(tmp, contractName, createSourceList(_input), false);
evmData["legacyAssembly"] = m_compilerStack.streamAssembly(unused, contractName, createSourceList(_input), true); evmData["assembly"] = tmp.str();
evmData["legacyAssembly"] = m_compilerStack.streamAssembly(tmp, contractName, createSourceList(_input), true);
evmData["methodIdentifiers"] = methodIdentifiers(m_compilerStack.contractDefinition(contractName)); evmData["methodIdentifiers"] = methodIdentifiers(m_compilerStack.contractDefinition(contractName));
// @TODO: add gasEstimates // @TODO: add gasEstimates