[llvm-commits] CVS: llvm/lib/Support/SystemUtils.cpp

Misha Brukman brukman at cs.uiuc.edu
Fri Apr 22 12:13:33 PDT 2005



Changes in directory llvm/lib/Support:

SystemUtils.cpp updated: 1.41 -> 1.42
---
Log message:

* Order #includes as per style guide
* Combine multiple ``std::cerr <<'' statements into one for simplicity


---
Diffs of the changes:  (+5 -6)

 SystemUtils.cpp |   11 +++++------
 1 files changed, 5 insertions(+), 6 deletions(-)


Index: llvm/lib/Support/SystemUtils.cpp
diff -u llvm/lib/Support/SystemUtils.cpp:1.41 llvm/lib/Support/SystemUtils.cpp:1.42
--- llvm/lib/Support/SystemUtils.cpp:1.41	Thu Apr 21 17:52:05 2005
+++ llvm/lib/Support/SystemUtils.cpp	Fri Apr 22 14:13:22 2005
@@ -13,20 +13,19 @@
 //===----------------------------------------------------------------------===//
 
 #include "llvm/Support/SystemUtils.h"
-#include "llvm/System/Program.h"
 #include "llvm/System/Process.h"
+#include "llvm/System/Program.h"
 #include <iostream>
-
 using namespace llvm;
 
 bool llvm::CheckBytecodeOutputToConsole(std::ostream* stream_to_check,
                                         bool print_warning) {
   if (stream_to_check == &std::cout && sys::Process::StandardOutIsDisplayed()) {
     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";
+      std::cerr << "WARNING: You're attempting to print out a bytecode file.\n"
+                << "This is inadvisable as it may cause display problems. If\n"
+                << "you REALLY want to taste LLVM bytecode first-hand, you\n"
+                << "can force output with the `-f' option.\n\n";
     }
     return true;
   }






More information about the llvm-commits mailing list