diff options
author | Ted Kremenek <kremenek@apple.com> | 2009-04-01 00:23:28 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2009-04-01 00:23:28 +0000 |
commit | 0df70517836f6119ce13ab644bd0995e53871ff1 (patch) | |
tree | bc40796a7fc862cf5c370fc9e2247b40beaed02e /clang | |
parent | 5fc1a0339c6d1affe3b53fe0910e592cf51b4e3b (diff) | |
download | bcm5719-llvm-0df70517836f6119ce13ab644bd0995e53871ff1.tar.gz bcm5719-llvm-0df70517836f6119ce13ab644bd0995e53871ff1.zip |
Add '-emit-pth' option to clang-cc as an alternate API for the high-level driver
to generate PTH files. Soon we will remove from clang-cc the GCC-style '-x
c-header' interface for generating PTH files and push this logic to 'clang'.
llvm-svn: 68164
Diffstat (limited to 'clang')
-rw-r--r-- | clang/tools/clang-cc/clang-cc.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/clang/tools/clang-cc/clang-cc.cpp b/clang/tools/clang-cc/clang-cc.cpp index 1a114a637e8..58538067bc4 100644 --- a/clang/tools/clang-cc/clang-cc.cpp +++ b/clang/tools/clang-cc/clang-cc.cpp @@ -138,7 +138,9 @@ ProgAction(llvm::cl::desc("Choose output type:"), llvm::cl::ZeroOrMore, clEnumValN(ASTView, "ast-view", "Build ASTs and view them with GraphViz"), clEnumValN(PrintDeclContext, "print-decl-contexts", - "Print DeclContexts and their Decls."), + "Print DeclContexts and their Decls"), + clEnumValN(GeneratePCH, "emit-pth", + "Generate pre-tokenized header file"), clEnumValN(TestSerialization, "test-pickling", "Run prototype serialization code"), clEnumValN(EmitAssembly, "S", |