[llvm-commits] CVS: llvm/tools/opt/opt.cpp
Chris Lattner
lattner at cs.uiuc.edu
Sun Aug 27 15:40:40 PDT 2006
Changes in directory llvm/tools/opt:
opt.cpp updated: 1.116 -> 1.117
---
Log message:
-analyze mode shouldn't output a .bc file.
---
Diffs of the changes: (+1 -2)
opt.cpp | 3 +--
1 files changed, 1 insertion(+), 2 deletions(-)
Index: llvm/tools/opt/opt.cpp
diff -u llvm/tools/opt/opt.cpp:1.116 llvm/tools/opt/opt.cpp:1.117
--- llvm/tools/opt/opt.cpp:1.116 Sun Aug 27 17:07:01 2006
+++ llvm/tools/opt/opt.cpp Sun Aug 27 17:40:26 2006
@@ -30,7 +30,6 @@
#include <fstream>
#include <memory>
#include <algorithm>
-
using namespace llvm;
// The OptimizationList is automatically populated with registered Passes by the
@@ -250,7 +249,7 @@
Passes.add(createVerifierPass());
// Write bytecode out to disk or cout as the last step...
- if (!NoOutput)
+ if (!NoOutput && !AnalyzeOnly)
Passes.add(new WriteBytecodePass(Out, Out != &std::cout));
// Now that we have all of the passes ready, run them.
More information about the llvm-commits
mailing list