mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-13 04:38:24 +00:00
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:
@ -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
|
||||
|
Reference in New Issue
Block a user