diff options
author | Bill Wendling <isanbard@gmail.com> | 2006-11-26 09:17:06 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2006-11-26 09:17:06 +0000 |
commit | 62c804a3ea537a83f307ed9c2788138cc47cc2ed (patch) | |
tree | 4fa3d0ad83de69aa3cc9edbdd65ba28b78b06680 /lib/Transforms/Instrumentation/BlockProfiling.cpp | |
parent | f525eb905614b418939b6a49f9ee57caf15cc168 (diff) |
Removed #include <iostream> and used the llvm_cerr/DOUT streams instead.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31922 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Instrumentation/BlockProfiling.cpp')
-rw-r--r-- | lib/Transforms/Instrumentation/BlockProfiling.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/Transforms/Instrumentation/BlockProfiling.cpp b/lib/Transforms/Instrumentation/BlockProfiling.cpp index 7e1f5cc76c..af2928b0fc 100644 --- a/lib/Transforms/Instrumentation/BlockProfiling.cpp +++ b/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! } |