summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Instrumentation
diff options
context:
space:
mode:
authorDavid Greene <greened@obbligato.org>2010-01-05 01:27:01 +0000
committerDavid Greene <greened@obbligato.org>2010-01-05 01:27:01 +0000
commitb72ad95ecf9eec301dadd8ac4f5b033e92b55cef (patch)
tree6194d0b25d0cd16b3fcf3a9a5484386bf4063d20 /llvm/lib/Transforms/Instrumentation
parent084b0dde9d2385f51bb69c3b8dfae4c00a2f6a69 (diff)
downloadbcm5719-llvm-b72ad95ecf9eec301dadd8ac4f5b033e92b55cef.tar.gz
bcm5719-llvm-b72ad95ecf9eec301dadd8ac4f5b033e92b55cef.zip
Change errs() to dbgs().
llvm-svn: 92607
Diffstat (limited to 'llvm/lib/Transforms/Instrumentation')
-rw-r--r--llvm/lib/Transforms/Instrumentation/OptimalEdgeProfiling.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Instrumentation/OptimalEdgeProfiling.cpp b/llvm/lib/Transforms/Instrumentation/OptimalEdgeProfiling.cpp
index 0a46fe5e858..94b0671c5b0 100644
--- a/llvm/lib/Transforms/Instrumentation/OptimalEdgeProfiling.cpp
+++ b/llvm/lib/Transforms/Instrumentation/OptimalEdgeProfiling.cpp
@@ -61,7 +61,7 @@ ModulePass *llvm::createOptimalEdgeProfilerPass() {
inline static void printEdgeCounter(ProfileInfo::Edge e,
BasicBlock* b,
unsigned i) {
- DEBUG(errs() << "--Edge Counter for " << (e) << " in " \
+ DEBUG(dbgs() << "--Edge Counter for " << (e) << " in " \
<< ((b)?(b)->getNameStr():"0") << " (# " << (i) << ")\n");
}
@@ -120,7 +120,7 @@ bool OptimalEdgeProfiler::runOnModule(Module &M) {
unsigned i = 0;
for (Module::iterator F = M.begin(), E = M.end(); F != E; ++F) {
if (F->isDeclaration()) continue;
- DEBUG(errs()<<"Working on "<<F->getNameStr()<<"\n");
+ DEBUG(dbgs()<<"Working on "<<F->getNameStr()<<"\n");
// Calculate a Maximum Spanning Tree with the edge weights determined by
// ProfileEstimator. ProfileEstimator also assign weights to the virtual
OpenPOWER on IntegriCloud