r241635 - Cleanup: Use the C++ API to initialize the backend.

Adrian Prantl aprantl at apple.com
Tue Jul 7 15:34:47 PDT 2015


Author: adrian
Date: Tue Jul  7 17:34:47 2015
New Revision: 241635

URL: http://llvm.org/viewvc/llvm-project?rev=241635&view=rev
Log:
Cleanup: Use the C++ API to initialize the backend.

Modified:
    cfe/trunk/lib/CodeGen/ObjectFilePCHContainerOperations.cpp

Modified: cfe/trunk/lib/CodeGen/ObjectFilePCHContainerOperations.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/ObjectFilePCHContainerOperations.cpp?rev=241635&r1=241634&r2=241635&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/ObjectFilePCHContainerOperations.cpp (original)
+++ cfe/trunk/lib/CodeGen/ObjectFilePCHContainerOperations.cpp Tue Jul  7 17:34:47 2015
@@ -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 <memory>
 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;





More information about the cfe-commits mailing list