summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Instrumentation/BlockProfiling.cpp
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2006-11-26 09:17:06 +0000
committerBill Wendling <isanbard@gmail.com>2006-11-26 09:17:06 +0000
commita7459ca8139b5ffe85050aec3047a94e294f0761 (patch)
treef7df731f07946df0a4513720dd544dcfd6ab406b /llvm/lib/Transforms/Instrumentation/BlockProfiling.cpp
parent24cdf575e7aec6c3d5ba4677f4861f57699eba00 (diff)
downloadbcm5719-llvm-a7459ca8139b5ffe85050aec3047a94e294f0761.tar.gz
bcm5719-llvm-a7459ca8139b5ffe85050aec3047a94e294f0761.zip
Removed #include <iostream> and used the llvm_cerr/DOUT streams instead.
llvm-svn: 31922
Diffstat (limited to 'llvm/lib/Transforms/Instrumentation/BlockProfiling.cpp')
-rw-r--r--llvm/lib/Transforms/Instrumentation/BlockProfiling.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/llvm/lib/Transforms/Instrumentation/BlockProfiling.cpp b/llvm/lib/Transforms/Instrumentation/BlockProfiling.cpp
index 7e1f5cc76ca..af2928b0fce 100644
--- a/llvm/lib/Transforms/Instrumentation/BlockProfiling.cpp
+++ b/llvm/lib/Transforms/Instrumentation/BlockProfiling.cpp
@@ -23,11 +23,10 @@
#include "llvm/DerivedTypes.h"
#include "llvm/Module.h"
#include "llvm/Pass.h"
+#include "llvm/Support/Streams.h"
#include "llvm/Transforms/Instrumentation.h"
#include "RSProfiling.h"
#include "ProfilingUtils.h"
-#include <iostream>
-
using namespace llvm;
namespace {
@@ -48,7 +47,7 @@ ModulePass *llvm::createFunctionProfilerPass() {
bool FunctionProfiler::runOnModule(Module &M) {
Function *Main = M.getMainFunction();
if (Main == 0) {
- std::cerr << "WARNING: cannot insert function profiling into a module"
+ llvm_cerr << "WARNING: cannot insert function profiling into a module"
<< " with no main function!\n";
return false; // No main, no instrumentation!
}
@@ -91,7 +90,7 @@ ModulePass *llvm::createBlockProfilerPass() { return new BlockProfiler(); }
bool BlockProfiler::runOnModule(Module &M) {
Function *Main = M.getMainFunction();
if (Main == 0) {
- std::cerr << "WARNING: cannot insert block profiling into a module"
+ llvm_cerr << "WARNING: cannot insert block profiling into a module"
<< " with no main function!\n";
return false; // No main, no instrumentation!
}
OpenPOWER on IntegriCloud