[llvm-commits] CVS: llvm/lib/Transforms/Hello/Hello.cpp
Bill Wendling
isanbard at gmail.com
Sun Nov 26 01:17:26 PST 2006
Changes in directory llvm/lib/Transforms/Hello:
Hello.cpp updated: 1.8 -> 1.9
---
Log message:
Removed #include <iostream> and used the llvm_cerr/DOUT streams instead.
---
Diffs of the changes: (+3 -3)
Hello.cpp | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
Index: llvm/lib/Transforms/Hello/Hello.cpp
diff -u llvm/lib/Transforms/Hello/Hello.cpp:1.8 llvm/lib/Transforms/Hello/Hello.cpp:1.9
--- llvm/lib/Transforms/Hello/Hello.cpp:1.8 Sun Aug 27 17:42:52 2006
+++ llvm/lib/Transforms/Hello/Hello.cpp Sun Nov 26 03:17:06 2006
@@ -16,8 +16,8 @@
#include "llvm/Function.h"
#include "llvm/ADT/StringExtras.h"
#include "llvm/Support/SlowOperationInformer.h"
+#include "llvm/Support/Streams.h"
#include "llvm/ADT/Statistic.h"
-#include <iostream>
using namespace llvm;
namespace {
@@ -30,7 +30,7 @@
HelloCounter++;
std::string fname = F.getName();
EscapeString(fname);
- std::cerr << "Hello: " << fname << "\n";
+ llvm_cerr << "Hello: " << fname << "\n";
return false;
}
};
@@ -43,7 +43,7 @@
HelloCounter++;
std::string fname = F.getName();
EscapeString(fname);
- std::cerr << "Hello: " << fname << "\n";
+ llvm_cerr << "Hello: " << fname << "\n";
return false;
}
More information about the llvm-commits
mailing list