aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2009-04-01 00:23:28 +0000
committerTed Kremenek <kremenek@apple.com>2009-04-01 00:23:28 +0000
commit08478eb8b24185e5fb06eace97de9d09174581d9 (patch)
tree2d79c87dcfc443bfcb48c000804bdae3ff1f988c
parentc6c91bc019ff7fa09f6570025ba011aad4c0d004 (diff)
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'. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@68164 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--tools/clang-cc/clang-cc.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/clang-cc/clang-cc.cpp b/tools/clang-cc/clang-cc.cpp
index 1a114a637e..58538067bc 100644
--- a/tools/clang-cc/clang-cc.cpp
+++ b/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",