diff options
author | Chris Lattner <sabre@nondot.org> | 2002-05-22 21:56:32 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-05-22 21:56:32 +0000 |
commit | f09c74c3859f3c97dfe36d22d9ff1c536fc825ed (patch) | |
tree | 67c61113ce7c9a2e3318d197a645c2a53947a103 /lib/Transforms/Instrumentation/ProfilePaths/ProfilePaths.cpp | |
parent | d9036a1aad813b419edcec8e17d24bcaedd72065 (diff) |
Convert code to use the DEBUG macro so that debug code can simply be
enabled with the -debug command line option.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2721 91177308-0d34-0410-b5e6-96231b3b80d8
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 |