diff options
Diffstat (limited to 'lib/Transforms/Instrumentation/ProfilePaths/ProfilePaths.cpp')
-rw-r--r-- | lib/Transforms/Instrumentation/ProfilePaths/ProfilePaths.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/lib/Transforms/Instrumentation/ProfilePaths/ProfilePaths.cpp b/lib/Transforms/Instrumentation/ProfilePaths/ProfilePaths.cpp index d4a20867c9..dcab136800 100644 --- a/lib/Transforms/Instrumentation/ProfilePaths/ProfilePaths.cpp +++ b/lib/Transforms/Instrumentation/ProfilePaths/ProfilePaths.cpp @@ -102,9 +102,7 @@ bool ProfilePaths::runOnFunction(Function *M){ Graph g(nodes,edges, startNode, exitNode); -#ifdef DEBUG_PATH_PROFILES - printGraph(g); -#endif + DEBUG(printGraph(g)); BasicBlock *fr=M->front(); @@ -114,9 +112,8 @@ bool ProfilePaths::runOnFunction(Function *M){ // by removing back edges for now, and adding them later on vector<Edge> be; g.getBackEdges(be); -#ifdef DEBUG_PATH_PROFILES - cerr<<"Backedges:"<<be.size()<<endl; -#endif + DEBUG(cerr << "Backedges:" << be.size() << "\n"); + // Now we need to reflect the effect of back edges // This is done by adding dummy edges // If a->b is a back edge |