mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Support new assembly output
This commit is contained in:
parent
a87dd17d0f
commit
2df52edfbd
@ -263,9 +263,10 @@ Json::Value StandardCompiler::compileInternal(Json::Value const& _input)
|
||||
// EVM
|
||||
Json::Value evmData(Json::objectValue);
|
||||
// @TODO: add ir
|
||||
// @TODO: add assembly
|
||||
ostringstream unused;
|
||||
evmData["legacyAssembly"] = m_compilerStack.streamAssembly(unused, contractName, createSourceList(_input), true);
|
||||
ostringstream tmp;
|
||||
m_compilerStack.streamAssembly(tmp, contractName, createSourceList(_input), false);
|
||||
evmData["assembly"] = tmp.str();
|
||||
evmData["legacyAssembly"] = m_compilerStack.streamAssembly(tmp, contractName, createSourceList(_input), true);
|
||||
evmData["methodIdentifiers"] = methodIdentifiers(m_compilerStack.contractDefinition(contractName));
|
||||
// @TODO: add gasEstimates
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user