aboutsummaryrefslogtreecommitdiffstats
path: root/CommandLineInterface.cpp
diff options
context:
space:
mode:
authorLefteris Karapetsas <lefteris@refu.co>2014-12-17 06:31:22 +0800
committerLefteris Karapetsas <lefteris@refu.co>2014-12-17 06:31:22 +0800
commitd9f0160a41988c546eeb69f2eac6b7bca2c3d0d7 (patch)
tree097c6a4b179be58dbd104a9e5b84e14bcf943e63 /CommandLineInterface.cpp
parent40b4740b43040790ed2f9e7b610630070e040808 (diff)
downloaddexon-solidity-d9f0160a41988c546eeb69f2eac6b7bca2c3d0d7.tar
dexon-solidity-d9f0160a41988c546eeb69f2eac6b7bca2c3d0d7.tar.gz
dexon-solidity-d9f0160a41988c546eeb69f2eac6b7bca2c3d0d7.tar.bz2
dexon-solidity-d9f0160a41988c546eeb69f2eac6b7bca2c3d0d7.tar.lz
dexon-solidity-d9f0160a41988c546eeb69f2eac6b7bca2c3d0d7.tar.xz
dexon-solidity-d9f0160a41988c546eeb69f2eac6b7bca2c3d0d7.tar.zst
dexon-solidity-d9f0160a41988c546eeb69f2eac6b7bca2c3d0d7.zip
Properly outputing opcodes in solc, using normal stream operator
Diffstat (limited to 'CommandLineInterface.cpp')
-rw-r--r--CommandLineInterface.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/CommandLineInterface.cpp b/CommandLineInterface.cpp
index f13423ed..8aa182b5 100644
--- a/CommandLineInterface.cpp
+++ b/CommandLineInterface.cpp
@@ -122,19 +122,18 @@ void CommandLineInterface::handleBinary(string const& _contract)
void CommandLineInterface::handleOpcode(string const& _contract)
{
- // TODO: Figure out why the wrong operator << (from boost) is used here
auto choice = m_args[ARG_OPCODES_STR].as<OutputType>();
if (outputToStdout(choice))
{
cout << "Opcodes: " << endl;
- dev::operator<<(cout, m_compiler.getBytecode(_contract));
+ cout << eth::disassemble(m_compiler.getBytecode(_contract));
cout << endl;
}
if (outputToFile(choice))
{
ofstream outFile(_contract + ".opcode");
- dev::operator<<(outFile, m_compiler.getBytecode(_contract));
+ outFile << eth::disassemble(m_compiler.getBytecode(_contract));
outFile.close();
}
}