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 | 67d62bc20d95da125b1bb2025d35a80144273639 (patch) | |
tree | 6645b060b212c0824280a2cb174c29665acb1d50 /lib/Frontend/FrontendAction.cpp | |
parent | 1e2908f3ccb7f281abe429f28e57d3a167c15dd5 (diff) | |
download | clang-67d62bc20d95da125b1bb2025d35a80144273639.tar.gz |
Move ChainedIncludesSource into the implementation
This doesn't need to be in the headers.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@212451 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Frontend/FrontendAction.cpp')
-rw-r--r-- | lib/Frontend/FrontendAction.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/lib/Frontend/FrontendAction.cpp b/lib/Frontend/FrontendAction.cpp index 1cf4a79fd2..c274ba7176 100644 --- a/lib/Frontend/FrontendAction.cpp +++ b/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!"); |