mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-19 19:30:44 +00:00
Output compilation (option -c) result to standard output by default
This commit is contained in:
parent
e8ff67cb48
commit
d8430db13c
1 changed files with 5 additions and 1 deletions
|
|
@ -6,6 +6,8 @@
|
|||
|
||||
#include <boost/algorithm/string.hpp>
|
||||
|
||||
#include <llvm/Support/raw_os_ostream.h>
|
||||
|
||||
#include <libdevcore/Common.h>
|
||||
#include <libdevcore/CommonIO.h>
|
||||
#include <libevmface/Instruction.h>
|
||||
|
|
@ -87,7 +89,9 @@ int main(int argc, char** argv)
|
|||
|
||||
if (opt_compile)
|
||||
{
|
||||
evmcc::Compiler().compile(bytecode)->dump();
|
||||
auto module = evmcc::Compiler().compile(bytecode);
|
||||
llvm::raw_os_ostream out(std::cout);
|
||||
module->print(out, nullptr);
|
||||
}
|
||||
|
||||
if (opt_interpret)
|
||||
|
|
|
|||
Loading…
Reference in a new issue