This commit is contained in:
parent
144d5f3324
commit
78563448fb
|
@ -139,7 +139,7 @@ void output_llvm(llvm_context& ctx, const std::string& filename) {
|
||||||
if (ec) {
|
if (ec) {
|
||||||
throw 0;
|
throw 0;
|
||||||
} else {
|
} else {
|
||||||
llvm::TargetMachine::CodeGenFileType type = llvm::TargetMachine::CGFT_ObjectFile;
|
llvm::CodeGenFileType type = llvm::CGFT_ObjectFile;
|
||||||
llvm::legacy::PassManager pm;
|
llvm::legacy::PassManager pm;
|
||||||
if (targetMachine->addPassesToEmitFile(pm, file, NULL, type)) {
|
if (targetMachine->addPassesToEmitFile(pm, file, NULL, type)) {
|
||||||
throw 0;
|
throw 0;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user