Convert code to use the DEBUG macro so that debug code can simply be
enabled with the -debug command line option.
llvm-svn: 2721
diff --git a/llvm/lib/Transforms/Instrumentation/ProfilePaths/ProfilePaths.cpp b/llvm/lib/Transforms/Instrumentation/ProfilePaths/ProfilePaths.cpp
index d4a2086..dcab136 100644
--- a/llvm/lib/Transforms/Instrumentation/ProfilePaths/ProfilePaths.cpp
+++ b/llvm/lib/Transforms/Instrumentation/ProfilePaths/ProfilePaths.cpp
@@ -102,9 +102,7 @@
Graph g(nodes,edges, startNode, exitNode);
-#ifdef DEBUG_PATH_PROFILES
- printGraph(g);
-#endif
+ DEBUG(printGraph(g));
BasicBlock *fr=M->front();
@@ -114,9 +112,8 @@
// 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