Changed to dump llvm assembly code to standard output

This commit is contained in:
yhirose 2019-01-10 21:46:16 -05:00
parent c84cdd1645
commit 5664d917dc

View File

@ -534,7 +534,7 @@ struct LLVM {
compile(ast); compile(ast);
} }
void dump() { module_->print(llvm::errs(), nullptr); } void dump() { module_->print(llvm::outs(), nullptr); }
void exec() { void exec() {
unique_ptr<ExecutionEngine> ee(EngineBuilder(std::move(module_)).create()); unique_ptr<ExecutionEngine> ee(EngineBuilder(std::move(module_)).create());