[llvm-commits] CVS: llvm/tools/opt/opt.cpp
Reid Spencer
reid at x10sys.com
Sat Jan 1 15:57:11 PST 2005
Changes in directory llvm/tools/opt:
opt.cpp updated: 1.100 -> 1.101
---
Log message:
Move the code for printing out a warning about bytecode output to a console
into lib/Support so it can be used with other tools.
---
Diffs of the changes: (+1 -7)
Index: llvm/tools/opt/opt.cpp
diff -u llvm/tools/opt/opt.cpp:1.100 llvm/tools/opt/opt.cpp:1.101
--- llvm/tools/opt/opt.cpp:1.100 Wed Dec 29 23:36:08 2004
+++ llvm/tools/opt/opt.cpp Sat Jan 1 17:57:01 2005
@@ -118,13 +118,7 @@
// 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 (Out == &std::cout && isStandardOutAConsole() && !Force && !NoOutput
- && !Quiet) {
- std::cerr << "WARNING: It looks like you're attempting to print out a "
- << "bytecode file. I'm\ngoing to pretend you didn't ask me to do"
- << " this (for your own good). If you\nREALLY want to taste LLVM"
- << " bytecode first-hand, you can force output with the\n`-f'"
- << " option.\n\n";
+ if (!Force && !NoOutput && !Quiet && CheckBytecodeOutputToConsole(Out)) {
NoOutput = true;
}
More information about the llvm-commits
mailing list