diff options
author | Sebastian Redl <sebastian.redl@getdesigned.at> | 2010-07-08 22:01:51 +0000 |
---|---|---|
committer | Sebastian Redl <sebastian.redl@getdesigned.at> | 2010-07-08 22:01:51 +0000 |
commit | 595c51342c8bb1d256e0d6bd2bfedc03899f60cd (patch) | |
tree | aa12cc0f48b9162f7777ee7f18ca229d19060804 /clang/lib/Frontend/CompilerInstance.cpp | |
parent | 364b0e72d1b10d3baeae1fc85c237864be09c3f9 (diff) | |
download | bcm5719-llvm-595c51342c8bb1d256e0d6bd2bfedc03899f60cd.tar.gz bcm5719-llvm-595c51342c8bb1d256e0d6bd2bfedc03899f60cd.zip |
Some preparatory work for chained PCH. No functionality change.
llvm-svn: 107915
Diffstat (limited to 'clang/lib/Frontend/CompilerInstance.cpp')
-rw-r--r-- | clang/lib/Frontend/CompilerInstance.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/lib/Frontend/CompilerInstance.cpp b/clang/lib/Frontend/CompilerInstance.cpp index 0ff70edf8b4..fa5338d30e6 100644 --- a/clang/lib/Frontend/CompilerInstance.cpp +++ b/clang/lib/Frontend/CompilerInstance.cpp @@ -255,6 +255,8 @@ void CompilerInstance::createPCHExternalASTSource(llvm::StringRef Path) { llvm::OwningPtr<ExternalASTSource> Source; Source.reset(createPCHExternalASTSource(Path, getHeaderSearchOpts().Sysroot, getPreprocessor(), getASTContext())); + // Remember the PCHReader, but in a non-owning way. + Reader = static_cast<PCHReader*>(Source.get()); getASTContext().setExternalSource(Source); } |