diff options
author | Alp Toker <alp@nuanti.com> | 2014-07-07 11:07:10 +0000 |
---|---|---|
committer | Alp Toker <alp@nuanti.com> | 2014-07-07 11:07:10 +0000 |
commit | 9e0523d74962ae910fb75a30f39517b9f1935546 (patch) | |
tree | 8edc6eb74369911a6ffaaf208e8fc2a924c751cb /clang/lib/Frontend/FrontendAction.cpp | |
parent | 7eb95e21d7798c46577ddb33e3d8f87f3e1bb15f (diff) | |
download | bcm5719-llvm-9e0523d74962ae910fb75a30f39517b9f1935546.tar.gz bcm5719-llvm-9e0523d74962ae910fb75a30f39517b9f1935546.zip |
Move ChainedIncludesSource into the implementation
This doesn't need to be in the headers.
llvm-svn: 212451
Diffstat (limited to 'clang/lib/Frontend/FrontendAction.cpp')
-rw-r--r-- | clang/lib/Frontend/FrontendAction.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/clang/lib/Frontend/FrontendAction.cpp b/clang/lib/Frontend/FrontendAction.cpp index 1cf4a79fd2f..c274ba71768 100644 --- a/clang/lib/Frontend/FrontendAction.cpp +++ b/clang/lib/Frontend/FrontendAction.cpp @@ -12,7 +12,6 @@ #include "clang/AST/ASTContext.h" #include "clang/AST/DeclGroup.h" #include "clang/Frontend/ASTUnit.h" -#include "clang/Frontend/ChainedIncludesSource.h" #include "clang/Frontend/CompilerInstance.h" #include "clang/Frontend/FrontendDiagnostic.h" #include "clang/Frontend/FrontendPluginRegistry.h" @@ -315,13 +314,12 @@ bool FrontendAction::BeginSourceFile(CompilerInstance &CI, if (!CI.getPreprocessorOpts().ChainedIncludes.empty()) { // Convert headers to PCH and chain them. - IntrusiveRefCntPtr<ChainedIncludesSource> source; - source = ChainedIncludesSource::create(CI); + IntrusiveRefCntPtr<ExternalSemaSource> source, FinalReader; + source = createChainedIncludesSource(CI, FinalReader); if (!source) goto failure; - CI.setModuleManager(static_cast<ASTReader*>(&source->getFinalReader())); + CI.setModuleManager(static_cast<ASTReader *>(FinalReader.get())); CI.getASTContext().setExternalSource(source); - } else if (!CI.getPreprocessorOpts().ImplicitPCHInclude.empty()) { // Use PCH. assert(hasPCHSupport() && "This action does not have PCH support!"); |