[llvm-commits] CVS: llvm/lib/Support/SystemUtils.cpp
Reid Spencer
reid at x10sys.com
Sat Jan 1 16:10:14 PST 2005
Changes in directory llvm/lib/Support:
SystemUtils.cpp updated: 1.39 -> 1.40
---
Log message:
Make printing a warning message optional in CheckBytecodeOutputToConsole.
---
Diffs of the changes: (+8 -5)
Index: llvm/lib/Support/SystemUtils.cpp
diff -u llvm/lib/Support/SystemUtils.cpp:1.39 llvm/lib/Support/SystemUtils.cpp:1.40
--- llvm/lib/Support/SystemUtils.cpp:1.39 Sat Jan 1 17:56:20 2005
+++ llvm/lib/Support/SystemUtils.cpp Sat Jan 1 18:10:03 2005
@@ -19,12 +19,15 @@
using namespace llvm;
-bool llvm::CheckBytecodeOutputToConsole(std::ostream* stream_to_check) {
+bool llvm::CheckBytecodeOutputToConsole(std::ostream* stream_to_check,
+ bool print_warning) {
if (stream_to_check == &std::cout && sys::Process::StandardOutIsDisplayed()) {
- std::cerr << "WARNING: You're attempting to print out a bytecode file.\n";
- std::cerr << "This is inadvisable as it may cause display problems. If\n";
- std::cerr << "you REALLY want to taste LLVM bytecode first-hand, you can\n";
- std::cerr << "force output with the `-f' option.\n\n";
+ if (print_warning) {
+ std::cerr << "WARNING: You're attempting to print out a bytecode file.\n";
+ std::cerr << "This is inadvisable as it may cause display problems. If\n";
+ std::cerr << "you REALLY want to taste LLVM bytecode first-hand, you\n";
+ std::cerr << "can force output with the `-f' option.\n\n";
+ }
return true;
}
return false;
More information about the llvm-commits
mailing list