[llvm-commits] CVS: llvm/tools/opt/opt.cpp
LLVM
llvm at cs.uiuc.edu
Thu May 27 03:29:01 PDT 2004
Changes in directory llvm/tools/opt:
opt.cpp updated: 1.90 -> 1.91
---
Log message:
Removed the -q option and the default message written to stderr. The
output produces confusing results in TestRunner.sh
---
Diffs of the changes: (+3 -6)
Index: llvm/tools/opt/opt.cpp
diff -u llvm/tools/opt/opt.cpp:1.90 llvm/tools/opt/opt.cpp:1.91
--- llvm/tools/opt/opt.cpp:1.90 Thu May 27 00:38:39 2004
+++ llvm/tools/opt/opt.cpp Thu May 27 03:26:22 2004
@@ -62,9 +62,6 @@
static cl::opt<bool>
Quiet("q", cl::desc("Don't print 'program modified' message"));
-static cl::alias
-QuietA("quiet", cl::desc("Alias for -q"), cl::aliasopt(Quiet));
-
//===----------------------------------------------------------------------===//
// main for opt
@@ -164,8 +161,8 @@
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)
- std::cerr << "Program modified.\n";
+ if (Passes.run(*M.get()))
+ return 0;
- return 0;
+ return 1;
}
More information about the llvm-commits
mailing list