diff options
author | Ted Kremenek <kremenek@apple.com> | 2007-12-19 19:47:59 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2007-12-19 19:47:59 +0000 |
commit | ccc7647b129f284e0344876eaee7c8ce27e96024 (patch) | |
tree | c452a2f56d195e19af2cda325ca44556d06d5156 /Driver/clang.cpp | |
parent | 2243449253475574fc6f14986ff8f7fce5d46799 (diff) |
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
Diffstat (limited to 'Driver/clang.cpp')
-rw-r--r-- | Driver/clang.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/Driver/clang.cpp b/Driver/clang.cpp index dc435f945a..9727e11135 100644 --- a/Driver/clang.cpp +++ b/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.")); |