[llvm-commits] CVS: llvm/lib/Transforms/Instrumentation/ProfilePaths/GraphAuxillary.cpp

Chris Lattner lattner at cs.uiuc.edu
Tue Sep 17 18:47:01 PDT 2002

Changes in directory llvm/lib/Transforms/Instrumentation/ProfilePaths:

GraphAuxillary.cpp updated: 1.9 -> 1.10

Log message:

There is a #define in some header that conflicts with INFINITY, rename it.

Diffs of the changes:

Index: llvm/lib/Transforms/Instrumentation/ProfilePaths/GraphAuxillary.cpp
diff -u llvm/lib/Transforms/Instrumentation/ProfilePaths/GraphAuxillary.cpp:1.9 llvm/lib/Transforms/Instrumentation/ProfilePaths/GraphAuxillary.cpp:1.10
--- llvm/lib/Transforms/Instrumentation/ProfilePaths/GraphAuxillary.cpp:1.9	Mon Sep 16 00:26:28 2002
+++ llvm/lib/Transforms/Instrumentation/ProfilePaths/GraphAuxillary.cpp	Tue Sep 17 18:46:33 2002
@@ -511,7 +511,7 @@
   //This would hold all 
   //right as long as number of paths in the graph
   //is less than this
-  const int INFINITY=99999999;
+  const int Infinity=99999999;
   //step 1-3 are already done on the graph when this function is called
@@ -521,14 +521,14 @@
   //now insert exit to root edge
   //if its there earlier, remove it!
-  //assign it weight INFINITY
+  //assign it weight Infinity
   //so that this edge IS ALWAYS IN spanning tree
   //Note than edges in spanning tree do not get 
   //instrumented: and we do not want the
   //edge exit->root to get instrumented
   //as it MAY BE a dummy edge
-  Edge ed(g.getExit(),g.getRoot(),INFINITY);
-  g.addEdge(ed,INFINITY);
+  Edge ed(g.getExit(),g.getRoot(),Infinity);
+  g.addEdge(ed,Infinity);
   Graph g2=g;
   //make g2 undirectional: this gives a better

More information about the llvm-commits mailing list