diff options
author | Douglas Gregor <dgregor@apple.com> | 2011-11-30 04:39:39 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2011-11-30 04:39:39 +0000 |
commit | a8cc6ce36e70e2afa22ab6b4340035cb3941c2eb (patch) | |
tree | 3e9239b1dfd505e5ff7173cf1cdb1d2896dba116 /lib/Serialization/GeneratePCH.cpp | |
parent | b514c792821a8f053027d88444e13bfaa8efef76 (diff) |
When writing a module file, pass the module through to the AST
writer. No functionality change.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@145479 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Serialization/GeneratePCH.cpp')
-rw-r--r-- | lib/Serialization/GeneratePCH.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Serialization/GeneratePCH.cpp b/lib/Serialization/GeneratePCH.cpp index a2534db82c..d24424f074 100644 --- a/lib/Serialization/GeneratePCH.cpp +++ b/lib/Serialization/GeneratePCH.cpp @@ -28,10 +28,10 @@ using namespace clang; PCHGenerator::PCHGenerator(const Preprocessor &PP, StringRef OutputFile, - bool IsModule, + ModuleMap::Module *Module, StringRef isysroot, raw_ostream *OS) - : PP(PP), OutputFile(OutputFile), IsModule(IsModule), + : PP(PP), OutputFile(OutputFile), Module(Module), isysroot(isysroot.str()), Out(OS), SemaPtr(0), StatCalls(0), Stream(Buffer), Writer(Stream) { // Install a stat() listener to keep track of all of the stat() @@ -49,7 +49,7 @@ void PCHGenerator::HandleTranslationUnit(ASTContext &Ctx) { // Emit the PCH file assert(SemaPtr && "No Sema?"); - Writer.WriteAST(*SemaPtr, StatCalls, OutputFile, IsModule, isysroot); + Writer.WriteAST(*SemaPtr, StatCalls, OutputFile, Module, isysroot); // Write the generated bitstream to "Out". Out->write((char *)&Buffer.front(), Buffer.size()); |