summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2007-12-19 19:47:59 +0000
committerTed Kremenek <kremenek@apple.com>2007-12-19 19:47:59 +0000
commit6c0b224011eb6365ff716292675b1a3743255931 (patch)
tree3955900dfc3772862559a43259c596348612ff1c
parentc2383313776b8d4299aa5501e32f19d5a2f86018 (diff)
downloadbcm5719-llvm-6c0b224011eb6365ff716292675b1a3743255931.tar.gz
bcm5719-llvm-6c0b224011eb6365ff716292675b1a3743255931.zip
Added "-o" option to driver. ASTConsumers will need to be gradually
rewired to utilize this option. Renamed option --serialize-ast --serialize. llvm-svn: 45213
-rw-r--r--clang/Driver/clang.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/clang/Driver/clang.cpp b/clang/Driver/clang.cpp
index dc435f945a3..9727e111353 100644
--- a/clang/Driver/clang.cpp
+++ b/clang/Driver/clang.cpp
@@ -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."));
OpenPOWER on IntegriCloud