Neuter the -q option. Stop printing the "program modified" message, ever
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13844 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/tools/opt/opt.cpp b/tools/opt/opt.cpp
index ace55d0..f907adf 100644
--- a/tools/opt/opt.cpp
+++ b/tools/opt/opt.cpp
@@ -60,7 +60,7 @@
NoVerify("disable-verify", cl::desc("Do not verify result module"), cl::Hidden);
static cl::opt<bool>
-Quiet("q", cl::desc("Don't print 'program modified' message"));
+Quiet("q", cl::desc("Obsolete option"), cl::Hidden);
static cl::alias
QuietA("quiet", cl::desc("Alias for -q"), cl::aliasopt(Quiet));
@@ -165,8 +165,7 @@
Passes.add(new WriteBytecodePass(Out, Out != &std::cout));
// Now that we have all of the passes ready, run them.
- if (Passes.run(*M.get()) )
- return 0;
+ Passes.run(*M.get());
return 0;
}