mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
initial output for asm-json flag.
Conflicts: libevmcore/Assembly.cpp
This commit is contained in:
parent
3dcc0f0893
commit
104c5bca07
@ -419,9 +419,9 @@ void CommandLineInterface::actOnInput()
|
|||||||
cout << endl << "======= " << contract << " =======" << endl;
|
cout << endl << "======= " << contract << " =======" << endl;
|
||||||
|
|
||||||
// do we need EVM assembly?
|
// do we need EVM assembly?
|
||||||
if (m_args.count(g_argAsmStr))
|
if (m_args.count(g_argAsmStr) || m_args.count(g_argAsmJsonStr))
|
||||||
{
|
{
|
||||||
auto choice = m_args[g_argAsmStr].as<OutputType>();
|
auto choice = m_args.count(g_argAsmStr) ? m_args[g_argAsmStr].as<OutputType>() : m_args[g_argAsmJsonStr].as<OutputType>();
|
||||||
if (outputToStdout(choice))
|
if (outputToStdout(choice))
|
||||||
{
|
{
|
||||||
cout << "EVM assembly:" << endl;
|
cout << "EVM assembly:" << endl;
|
||||||
|
Loading…
Reference in New Issue
Block a user