diff options
Diffstat (limited to 'lib/Serialization/GeneratePCH.cpp')
| -rw-r--r-- | lib/Serialization/GeneratePCH.cpp | 16 | 
1 files changed, 10 insertions, 6 deletions
diff --git a/lib/Serialization/GeneratePCH.cpp b/lib/Serialization/GeneratePCH.cpp index c461fe936ee43..4a2255ab6d39d 100644 --- a/lib/Serialization/GeneratePCH.cpp +++ b/lib/Serialization/GeneratePCH.cpp @@ -23,12 +23,15 @@  using namespace clang; -PCHGenerator::PCHGenerator(const Preprocessor &PP, StringRef OutputFile, -                           clang::Module *Module, StringRef isysroot, -                           std::shared_ptr<PCHBuffer> Buffer, -                           bool AllowASTWithErrors) +PCHGenerator::PCHGenerator( +  const Preprocessor &PP, StringRef OutputFile, +  clang::Module *Module, StringRef isysroot, +  std::shared_ptr<PCHBuffer> Buffer, +  ArrayRef<llvm::IntrusiveRefCntPtr<ModuleFileExtension>> Extensions, +  bool AllowASTWithErrors, bool IncludeTimestamps)      : PP(PP), OutputFile(OutputFile), Module(Module), isysroot(isysroot.str()), -      SemaPtr(nullptr), Buffer(Buffer), Stream(Buffer->Data), Writer(Stream), +      SemaPtr(nullptr), Buffer(Buffer), Stream(Buffer->Data), +      Writer(Stream, Extensions, IncludeTimestamps),        AllowASTWithErrors(AllowASTWithErrors) {    Buffer->IsComplete = false;  } @@ -47,7 +50,8 @@ void PCHGenerator::HandleTranslationUnit(ASTContext &Ctx) {    // Emit the PCH file to the Buffer.    assert(SemaPtr && "No Sema?"); -  Writer.WriteAST(*SemaPtr, OutputFile, Module, isysroot, hasErrors); +  Buffer->Signature = +      Writer.WriteAST(*SemaPtr, OutputFile, Module, isysroot, hasErrors);    Buffer->IsComplete = true;  }  | 
