From: Adrian Prantl Date: Tue, 7 Jul 2015 22:34:47 +0000 (+0000) Subject: Cleanup: Use the C++ API to initialize the backend. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5f180ca91121a0175c9f370aaf58c3285e1aad88;p=clang 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 --- 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;