diff options
Diffstat (limited to 'clang/lib/Frontend/CompilerInstance.cpp')
| -rw-r--r-- | clang/lib/Frontend/CompilerInstance.cpp | 7 | 
1 files changed, 5 insertions, 2 deletions
diff --git a/clang/lib/Frontend/CompilerInstance.cpp b/clang/lib/Frontend/CompilerInstance.cpp index 92aed39..412e711 100644 --- a/clang/lib/Frontend/CompilerInstance.cpp +++ b/clang/lib/Frontend/CompilerInstance.cpp @@ -234,11 +234,13 @@ void CompilerInstance::createASTContext() {  void CompilerInstance::createPCHExternalASTSource(llvm::StringRef Path,                                                    bool DisablePCHValidation, +                                                  bool DisableStatCache,                                                   void *DeserializationListener){    llvm::OwningPtr<ExternalASTSource> Source;    bool Preamble = getPreprocessorOpts().PrecompiledPreambleBytes.first != 0;    Source.reset(createPCHExternalASTSource(Path, getHeaderSearchOpts().Sysroot, -                                          DisablePCHValidation, +                                          DisablePCHValidation,  +                                          DisableStatCache,                                            getPreprocessor(), getASTContext(),                                            DeserializationListener,                                            Preamble)); @@ -249,6 +251,7 @@ ExternalASTSource *  CompilerInstance::createPCHExternalASTSource(llvm::StringRef Path,                                               const std::string &Sysroot,                                               bool DisablePCHValidation, +                                             bool DisableStatCache,                                               Preprocessor &PP,                                               ASTContext &Context,                                               void *DeserializationListener, @@ -256,7 +259,7 @@ CompilerInstance::createPCHExternalASTSource(llvm::StringRef Path,    llvm::OwningPtr<ASTReader> Reader;    Reader.reset(new ASTReader(PP, &Context,                               Sysroot.empty() ? 0 : Sysroot.c_str(), -                             DisablePCHValidation)); +                             DisablePCHValidation, DisableStatCache));    Reader->setDeserializationListener(              static_cast<ASTDeserializationListener *>(DeserializationListener));  | 
