mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
added source code printing for each output line.
some changes after pr review
This commit is contained in:
parent
d4e2e60ceb
commit
665edd3f86
@ -424,13 +424,13 @@ void CommandLineInterface::actOnInput()
|
|||||||
if (outputToStdout(choice))
|
if (outputToStdout(choice))
|
||||||
{
|
{
|
||||||
cout << "EVM assembly:" << endl;
|
cout << "EVM assembly:" << endl;
|
||||||
m_compiler->streamAssembly(cout, contract);
|
m_compiler->streamAssembly(cout, contract, m_sourceCodes);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (outputToFile(choice))
|
if (outputToFile(choice))
|
||||||
{
|
{
|
||||||
ofstream outFile(contract + ".evm");
|
ofstream outFile(contract + ".evm");
|
||||||
m_compiler->streamAssembly(outFile, contract);
|
m_compiler->streamAssembly(outFile, contract, m_sourceCodes);
|
||||||
outFile.close();
|
outFile.close();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user