diff options
author | Douglas Gregor <dgregor@apple.com> | 2011-08-25 22:30:56 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2011-08-25 22:30:56 +0000 |
commit | 69f74f80dbc8ee92346d60430e1a376d036adbf0 (patch) | |
tree | 1c90181ae92d822a6b17f2d49f55a5eb7c6b6374 /clang/lib/Frontend/FrontendActions.cpp | |
parent | 371376010f3be4bf97b3ebe4ba4f0359bfb32cde (diff) | |
download | llvm-69f74f80dbc8ee92346d60430e1a376d036adbf0.zip llvm-69f74f80dbc8ee92346d60430e1a376d036adbf0.tar.gz llvm-69f74f80dbc8ee92346d60430e1a376d036adbf0.tar.bz2 |
Introduce a -cc1 option "-emit-module", that creates a binary module
from the given source. -emit-module behaves similarly to -emit-pch,
except that Sema is somewhat more strict about the contents of
-emit-module. In the future, there are likely to be more interesting
differences.
llvm-svn: 138595
Diffstat (limited to 'clang/lib/Frontend/FrontendActions.cpp')
-rw-r--r-- | clang/lib/Frontend/FrontendActions.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/clang/lib/Frontend/FrontendActions.cpp b/clang/lib/Frontend/FrontendActions.cpp index d6df141..5e2b9c4 100644 --- a/clang/lib/Frontend/FrontendActions.cpp +++ b/clang/lib/Frontend/FrontendActions.cpp @@ -79,12 +79,13 @@ ASTConsumer *GeneratePCHAction::CreateASTConsumer(CompilerInstance &CI, std::string OutputFile; raw_ostream *OS = 0; bool Chaining; - if (ComputeASTConsumerArguments(CI, InFile, Sysroot, OutputFile, OS, Chaining)) + if (ComputeASTConsumerArguments(CI, InFile, Sysroot, OutputFile, OS, + Chaining)) return 0; if (!CI.getFrontendOpts().RelocatablePCH) Sysroot.clear(); - return new PCHGenerator(CI.getPreprocessor(), OutputFile, Chaining, Sysroot, + return new PCHGenerator(CI.getPreprocessor(), OutputFile, Chaining, Sysroot, OS); } |