From 78563448fb18a51044a816ad214c28ff23f32d5f Mon Sep 17 00:00:00 2001 From: Danila Fedorin Date: Sun, 26 Apr 2020 21:24:24 -0700 Subject: [PATCH] Update to LLVM 10. --- code/compiler/11/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/compiler/11/main.cpp b/code/compiler/11/main.cpp index 5cd3aa1..45a3e8b 100644 --- a/code/compiler/11/main.cpp +++ b/code/compiler/11/main.cpp @@ -139,7 +139,7 @@ void output_llvm(llvm_context& ctx, const std::string& filename) { if (ec) { throw 0; } else { - llvm::TargetMachine::CodeGenFileType type = llvm::TargetMachine::CGFT_ObjectFile; + llvm::CodeGenFileType type = llvm::CGFT_ObjectFile; llvm::legacy::PassManager pm; if (targetMachine->addPassesToEmitFile(pm, file, NULL, type)) { throw 0;