summaryrefslogtreecommitdiff
path: root/tools/opt
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2005-01-05 17:31:55 +0000
committerReid Spencer <rspencer@reidspencer.com>2005-01-05 17:31:55 +0000
commit564a571f620ab32d572cfd9aa06b2c50cfd849d4 (patch)
tree416be0df0c1c6aa9573203445c493db0593858e4 /tools/opt
parent62345827641ef25b5c9075f9d776b22a8ac546b9 (diff)
downloadllvm-564a571f620ab32d572cfd9aa06b2c50cfd849d4.tar.gz
llvm-564a571f620ab32d572cfd9aa06b2c50cfd849d4.tar.bz2
llvm-564a571f620ab32d572cfd9aa06b2c50cfd849d4.tar.xz
Make opt honor the quiet option when printing the bytecode warning.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19294 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/opt')
-rw-r--r--tools/opt/opt.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/opt/opt.cpp b/tools/opt/opt.cpp
index 949c9b1d5c..56bc16b6bd 100644
--- a/tools/opt/opt.cpp
+++ b/tools/opt/opt.cpp
@@ -118,7 +118,7 @@ int main(int argc, char **argv) {
// If the output is set to be emitted to standard out, and standard out is a
// console, print out a warning message and refuse to do it. We don't impress
// anyone by spewing tons of binary goo to a terminal.
- if (!Force && !NoOutput && !Quiet && CheckBytecodeOutputToConsole(Out)) {
+ if (!Force && !NoOutput && CheckBytecodeOutputToConsole(Out,!Quiet)) {
NoOutput = true;
}