[llvm-commits] CVS: llvm/tools/opt/opt.cpp
Chris Lattner
lattner at cs.uiuc.edu
Wed Feb 12 12:44:01 PST 2003
Changes in directory llvm/tools/opt:
opt.cpp updated: 1.74 -> 1.75
---
Log message:
Add a new -no-output option, useful for -aa-eval tests.
---
Diffs of the changes:
Index: llvm/tools/opt/opt.cpp
diff -u llvm/tools/opt/opt.cpp:1.74 llvm/tools/opt/opt.cpp:1.75
--- llvm/tools/opt/opt.cpp:1.74 Tue Oct 29 14:48:09 2002
+++ llvm/tools/opt/opt.cpp Wed Feb 12 12:43:33 2003
@@ -48,6 +48,9 @@
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 @@
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)
More information about the llvm-commits
mailing list