Some preparatory work for chained PCH. No functionality change.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@107915 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Frontend/FrontendActions.cpp b/lib/Frontend/FrontendActions.cpp
index f0b86a9..400d353 100644
--- a/lib/Frontend/FrontendActions.cpp
+++ b/lib/Frontend/FrontendActions.cpp
@@ -81,9 +81,10 @@
return 0;
if (CI.getFrontendOpts().RelocatablePCH)
- return CreatePCHGenerator(CI.getPreprocessor(), OS, Sysroot.c_str());
+ return CreatePCHGenerator(CI.getPreprocessor(), OS,
+ CI.getPCHReader(), Sysroot.c_str());
- return CreatePCHGenerator(CI.getPreprocessor(), OS);
+ return CreatePCHGenerator(CI.getPreprocessor(), OS, CI.getPCHReader());
}
ASTConsumer *InheritanceViewAction::CreateASTConsumer(CompilerInstance &CI,