summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Instrumentation/RSProfiling.cpp
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-07-25 00:23:56 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-07-25 00:23:56 +0000
commit0dd5e1ed393451be89d6bc8ff54901a359e5bf49 (patch)
tree7e42230fc39ac6c506a2bb5358bacbf4c7d93450 /llvm/lib/Transforms/Instrumentation/RSProfiling.cpp
parentf2972561367ecc6b5e03cb05a8a604427ceec6f6 (diff)
downloadbcm5719-llvm-0dd5e1ed393451be89d6bc8ff54901a359e5bf49.tar.gz
bcm5719-llvm-0dd5e1ed393451be89d6bc8ff54901a359e5bf49.zip
More migration to raw_ostream, the water has dried up around the iostream hole.
- Some clients which used DOUT have moved to DEBUG. We are deprecating the "magic" DOUT behavior which avoided calling printing functions when the statement was disabled. In addition to being unnecessary magic, it had the downside of leaving code in -Asserts builds, and of hiding potentially unnecessary computations. llvm-svn: 77019
Diffstat (limited to 'llvm/lib/Transforms/Instrumentation/RSProfiling.cpp')
-rw-r--r--llvm/lib/Transforms/Instrumentation/RSProfiling.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Instrumentation/RSProfiling.cpp b/llvm/lib/Transforms/Instrumentation/RSProfiling.cpp
index 30c2dc7162a..31b255feb02 100644
--- a/llvm/lib/Transforms/Instrumentation/RSProfiling.cpp
+++ b/llvm/lib/Transforms/Instrumentation/RSProfiling.cpp
@@ -45,6 +45,7 @@
#include "llvm/Support/Compiler.h"
#include "llvm/Support/Debug.h"
#include "llvm/Support/ErrorHandling.h"
+#include "llvm/Support/raw_ostream.h"
#include "llvm/Transforms/Instrumentation.h"
#include "RSProfiling.h"
#include <set>
@@ -643,7 +644,7 @@ static void getBackEdges(Function& F, T& BackEdges) {
std::map<BasicBlock*, int> finish;
int time = 0;
recBackEdge(&F.getEntryBlock(), BackEdges, color, depth, finish, time);
- DOUT << F.getName() << " " << BackEdges.size() << "\n";
+ DEBUG(errs() << F.getName() << " " << BackEdges.size() << "\n");
}
OpenPOWER on IntegriCloud