Added "-o" option to driver. ASTConsumers will need to be gradually
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
diff --git a/Driver/clang.cpp b/Driver/clang.cpp
index dc435f9..9727e11 100644
--- a/Driver/clang.cpp
+++ b/Driver/clang.cpp
@@ -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."));