diff options
author | Chris Lattner <sabre@nondot.org> | 2003-02-12 18:43:33 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2003-02-12 18:43:33 +0000 |
commit | d70b68ebd01baf2c5308ee7bc0881bb3fb999c56 (patch) | |
tree | 24c10b9b89b0cac6af6476cc95357b5b3e09a6b4 | |
parent | 3c0ced5e700792ead4fff894c28650401df4f48c (diff) |
Add a new -no-output option, useful for -aa-eval tests.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5541 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | tools/opt/opt.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tools/opt/opt.cpp b/tools/opt/opt.cpp index de56080c2c..9d0837c29d 100644 --- a/tools/opt/opt.cpp +++ b/tools/opt/opt.cpp @@ -48,6 +48,9 @@ static cl::opt<bool> PrintEachXForm("p", cl::desc("Print module after each transformation")); static cl::opt<bool> +NoOutput("no-output", cl::desc("Do not write result bytecode file"), cl::Hidden); + +static cl::opt<bool> Quiet("q", cl::desc("Don't print 'program modified' message")); static cl::alias @@ -128,7 +131,8 @@ int main(int argc, char **argv) { Passes.add(createVerifierPass()); // Write bytecode out to disk or cout as the last step... - Passes.add(new WriteBytecodePass(Out, Out != &std::cout)); + if (!NoOutput) + Passes.add(new WriteBytecodePass(Out, Out != &std::cout)); // Now that we have all of the passes ready, run them. if (Passes.run(*M.get()) && !Quiet) |