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 | f7a700fd01deb5b8fc6835cba99c7251e7aafe8f (patch) | |
tree | 973c0ab7f112a8e4f62d4d65bdc741be3b98bb9d /clang/lib/Frontend/FrontendActions.cpp | |
parent | 1805b8a42f1a636f6f8c0adb276cc610ac009a2b (diff) | |
download | llvm-f7a700fd01deb5b8fc6835cba99c7251e7aafe8f.zip llvm-f7a700fd01deb5b8fc6835cba99c7251e7aafe8f.tar.gz llvm-f7a700fd01deb5b8fc6835cba99c7251e7aafe8f.tar.bz2 |
When writing a module file, pass the module through to the AST
writer. No functionality change.
llvm-svn: 145479
Diffstat (limited to 'clang/lib/Frontend/FrontendActions.cpp')
-rw-r--r-- | clang/lib/Frontend/FrontendActions.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/clang/lib/Frontend/FrontendActions.cpp b/clang/lib/Frontend/FrontendActions.cpp index 418dbf4..0cbcde5 100644 --- a/clang/lib/Frontend/FrontendActions.cpp +++ b/clang/lib/Frontend/FrontendActions.cpp @@ -86,8 +86,7 @@ ASTConsumer *GeneratePCHAction::CreateASTConsumer(CompilerInstance &CI, if (!CI.getFrontendOpts().RelocatablePCH) Sysroot.clear(); - return new PCHGenerator(CI.getPreprocessor(), OutputFile, /*Module=*/false, - Sysroot, OS); + return new PCHGenerator(CI.getPreprocessor(), OutputFile, 0, Sysroot, OS); } bool GeneratePCHAction::ComputeASTConsumerArguments(CompilerInstance &CI, @@ -122,7 +121,7 @@ ASTConsumer *GenerateModuleAction::CreateASTConsumer(CompilerInstance &CI, if (ComputeASTConsumerArguments(CI, InFile, Sysroot, OutputFile, OS)) return 0; - return new PCHGenerator(CI.getPreprocessor(), OutputFile, /*MakeModule=*/true, + return new PCHGenerator(CI.getPreprocessor(), OutputFile, Module, Sysroot, OS); } @@ -184,8 +183,7 @@ bool GenerateModuleAction::BeginSourceFileAction(CompilerInstance &CI, } // Dig out the module definition. - ModuleMap::Module *Module = HS.getModule(CI.getLangOpts().CurrentModule, - /*AllowSearch=*/false); + Module = HS.getModule(CI.getLangOpts().CurrentModule, /*AllowSearch=*/false); if (!Module) { CI.getDiagnostics().Report(diag::err_missing_module) << CI.getLangOpts().CurrentModule << Filename; |