From 5049b8153656157920d98884dc2bb7fdd7a07634 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. --- 11/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/11/main.cpp b/11/main.cpp index 5cd3aa1..45a3e8b 100644 --- a/11/main.cpp +++ b/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;