]> granicus.if.org Git - clang/commitdiff
Add '-emit-pth' option to clang-cc as an alternate API for the high-level driver
authorTed Kremenek <kremenek@apple.com>
Wed, 1 Apr 2009 00:23:28 +0000 (00:23 +0000)
committerTed Kremenek <kremenek@apple.com>
Wed, 1 Apr 2009 00:23:28 +0000 (00:23 +0000)
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

tools/clang-cc/clang-cc.cpp

index 1a114a637e82091969420e4f8186f68f584923bb..58538067bc4eecadc7e0b17ce97b053f588be26a 100644 (file)
@@ -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",