summaryrefslogtreecommitdiffstats
path: root/clang/tools/driver/cc1_main.cpp
diff options
context:
space:
mode:
authorAdrian Prantl <aprantl@apple.com>2015-07-08 01:00:30 +0000
committerAdrian Prantl <aprantl@apple.com>2015-07-08 01:00:30 +0000
commitbc068586ac2807bfb4030bd9c4789b6a12359a9c (patch)
treefdcff3ac303bc4cbeb4fab1fd5367e96568a0ccd /clang/tools/driver/cc1_main.cpp
parent22302e5995544ceda622c939fb26a5f9f361d012 (diff)
downloadbcm5719-llvm-bc068586ac2807bfb4030bd9c4789b6a12359a9c.tar.gz
bcm5719-llvm-bc068586ac2807bfb4030bd9c4789b6a12359a9c.zip
Revert "Revert r241620 and follow-up commits" and move the initialization
of the llvm targets from clang/CodeGen into ClangCheck.cpp and CIndex.cpp. llvm-svn: 241653
Diffstat (limited to 'clang/tools/driver/cc1_main.cpp')
-rw-r--r--clang/tools/driver/cc1_main.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/tools/driver/cc1_main.cpp b/clang/tools/driver/cc1_main.cpp
index 972bf5bf3e1..65f845ddc45 100644
--- a/clang/tools/driver/cc1_main.cpp
+++ b/clang/tools/driver/cc1_main.cpp
@@ -14,7 +14,7 @@
//===----------------------------------------------------------------------===//
#include "llvm/Option/Arg.h"
-#include "clang/Frontend/PCHContainerOperations.h"
+#include "clang/CodeGen/ObjectFilePCHContainerOperations.h"
#include "clang/Driver/DriverDiagnostic.h"
#include "clang/Driver/Options.h"
#include "clang/Frontend/CompilerInstance.h"
@@ -65,8 +65,8 @@ void initializePollyPasses(llvm::PassRegistry &Registry);
#endif
int cc1_main(ArrayRef<const char *> Argv, const char *Argv0, void *MainAddr) {
- std::unique_ptr<CompilerInstance> Clang(
- new CompilerInstance(std::make_shared<RawPCHContainerOperations>()));
+ std::unique_ptr<CompilerInstance> Clang(new CompilerInstance(
+ std::make_shared<ObjectFilePCHContainerOperations>()));
IntrusiveRefCntPtr<DiagnosticIDs> DiagID(new DiagnosticIDs());
// Initialize targets first, so that --version shows registered targets.
OpenPOWER on IntegriCloud