[cfe-commits] r45213 - /cfe/trunk/Driver/clang.cpp

Ted Kremenek kremenek at apple.com
Wed Dec 19 11:47:59 PST 2007


Author: kremenek
Date: Wed Dec 19 13:47:59 2007
New Revision: 45213

URL: http://llvm.org/viewvc/llvm-project?rev=45213&view=rev
Log:
Added "-o" option to driver.  ASTConsumers will need to be gradually
rewired to utilize this option.

Renamed option --serialize-ast --serialize.

Modified:
    cfe/trunk/Driver/clang.cpp

Modified: cfe/trunk/Driver/clang.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/Driver/clang.cpp?rev=45213&r1=45212&r2=45213&view=diff

==============================================================================
--- cfe/trunk/Driver/clang.cpp (original)
+++ cfe/trunk/Driver/clang.cpp Wed Dec 19 13:47:59 2007
@@ -110,12 +110,17 @@
                         "Run prototype serializtion code."),
              clEnumValN(EmitLLVM, "emit-llvm",
                         "Build ASTs then convert to LLVM, emit .ll file"),
-             clEnumValN(SerializeAST, "serialize-ast",
+             clEnumValN(SerializeAST, "serialize",
                         "Build ASTs and emit .ast file"),
              clEnumValN(RewriteTest, "rewrite-test",
                         "Playground for the code rewriter"),
              clEnumValEnd));
 
+
+static llvm::cl::opt<std::string>
+OutputFile("o",
+ llvm::cl::desc("Specify output file (for --serialize, this is a directory)"));
+                          
 static llvm::cl::opt<bool>
 VerifyDiagnostics("verify",
                   llvm::cl::desc("Verify emitted diagnostics and warnings."));





More information about the cfe-commits mailing list