added source code printing for each output line.

some changes after pr review
This commit is contained in:
Liana Husikyan 2015-03-04 18:01:23 +01:00
parent d4e2e60ceb
commit 665edd3f86

View File

@ -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();
} }
} }