From 5f180ca91121a0175c9f370aaf58c3285e1aad88 Mon Sep 17 00:00:00 2001 From: Adrian Prantl Date: Tue, 7 Jul 2015 22:34:47 +0000 Subject: [PATCH] Cleanup: Use the C++ API to initialize the backend. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@241635 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/ObjectFilePCHContainerOperations.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/lib/CodeGen/ObjectFilePCHContainerOperations.cpp b/lib/CodeGen/ObjectFilePCHContainerOperations.cpp index f505c91874..58bd1035b7 100644 --- a/lib/CodeGen/ObjectFilePCHContainerOperations.cpp +++ b/lib/CodeGen/ObjectFilePCHContainerOperations.cpp @@ -29,6 +29,7 @@ #include "llvm/Object/COFF.h" #include "llvm/Object/ObjectFile.h" #include "llvm/Support/TargetRegistry.h" +#include "llvm/Support/TargetSelect.h" #include using namespace clang; @@ -99,10 +100,10 @@ public: Builder->Release(); // Initialize the backend if we haven't done so already. - LLVMInitializeAllTargetInfos(); - LLVMInitializeAllTargets(); - LLVMInitializeAllAsmPrinters(); - LLVMInitializeAllTargetMCs(); + llvm::InitializeAllTargetInfos(); + llvm::InitializeAllTargets(); + llvm::InitializeAllAsmPrinters(); + llvm::InitializeAllTargetMCs(); // Ensure the target exists. std::string Error; -- 2.40.0