From: Ted Kremenek Date: Wed, 1 Apr 2009 00:23:28 +0000 (+0000) Subject: Add '-emit-pth' option to clang-cc as an alternate API for the high-level driver X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=08478eb8b24185e5fb06eace97de9d09174581d9;p=clang 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 --- 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",