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 | a7459ca8139b5ffe85050aec3047a94e294f0761 (patch) | |
tree | f7df731f07946df0a4513720dd544dcfd6ab406b /llvm/lib/Transforms/Instrumentation/TraceBasicBlocks.cpp | |
parent | 24cdf575e7aec6c3d5ba4677f4861f57699eba00 (diff) | |
download | bcm5719-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/TraceBasicBlocks.cpp')
-rw-r--r-- | llvm/lib/Transforms/Instrumentation/TraceBasicBlocks.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/llvm/lib/Transforms/Instrumentation/TraceBasicBlocks.cpp b/llvm/lib/Transforms/Instrumentation/TraceBasicBlocks.cpp index 003ea0d26ae..076fa810742 100644 --- a/llvm/lib/Transforms/Instrumentation/TraceBasicBlocks.cpp +++ b/llvm/lib/Transforms/Instrumentation/TraceBasicBlocks.cpp @@ -23,7 +23,6 @@ #include "ProfilingUtils.h" #include "llvm/Support/Debug.h" #include <set> -#include <iostream> using namespace llvm; namespace { @@ -43,8 +42,8 @@ ModulePass *llvm::createTraceBasicBlockPass() static void InsertInstrumentationCall (BasicBlock *BB, const std::string FnName, unsigned BBNumber) { - DEBUG (std::cerr << "InsertInstrumentationCall (\"" << BB->getName () - << "\", \"" << FnName << "\", " << BBNumber << ")\n"); + DOUT << "InsertInstrumentationCall (\"" << BB->getName () + << "\", \"" << FnName << "\", " << BBNumber << ")\n"; Module &M = *BB->getParent ()->getParent (); Function *InstrFn = M.getOrInsertFunction (FnName, Type::VoidTy, Type::UIntTy, (Type *)0); @@ -62,7 +61,7 @@ static void InsertInstrumentationCall (BasicBlock *BB, bool TraceBasicBlocks::runOnModule(Module &M) { Function *Main = M.getMainFunction(); if (Main == 0) { - std::cerr << "WARNING: cannot insert basic-block trace instrumentation" + llvm_cerr << "WARNING: cannot insert basic-block trace instrumentation" << " into a module with no main function!\n"; return false; // No main, no instrumentation! } |