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
|
// 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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user