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
This commit is contained in:
Chris Lattner
2002-05-22 21:56:32 +00:00
parent d9036a1aad
commit f09c74c385
5 changed files with 147 additions and 197 deletions

View File

@ -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