]> granicus.if.org Git - clang/commitdiff
Added "-o" option to driver. ASTConsumers will need to be gradually
authorTed Kremenek <kremenek@apple.com>
Wed, 19 Dec 2007 19:47:59 +0000 (19:47 +0000)
committerTed Kremenek <kremenek@apple.com>
Wed, 19 Dec 2007 19:47:59 +0000 (19:47 +0000)
rewired to utilize this option.

Renamed option --serialize-ast --serialize.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@45213 91177308-0d34-0410-b5e6-96231b3b80d8

Driver/clang.cpp

index dc435f945a34b0bcd421dfc0cc6a53ee9ddc2251..9727e1113533c5ccff3ff807c2ee74c9dc36982a 100644 (file)
@@ -110,12 +110,17 @@ ProgAction(llvm::cl::desc("Choose output type:"), llvm::cl::ZeroOrMore,
                         "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."));