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

Reid Spencer reid at x10sys.com
Mon Oct 18 07:39:35 PDT 2004



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

GraphAuxiliary.cpp updated: 1.25 -> 1.26
---
Log message:

Correction to allow compilation with Visual C++.

Patch contributed by Morten Ofstad. Thanks Morten!


---
Diffs of the changes:  (+2 -2)

Index: llvm/lib/Transforms/Instrumentation/ProfilePaths/GraphAuxiliary.cpp
diff -u llvm/lib/Transforms/Instrumentation/ProfilePaths/GraphAuxiliary.cpp:1.25 llvm/lib/Transforms/Instrumentation/ProfilePaths/GraphAuxiliary.cpp:1.26
--- llvm/lib/Transforms/Instrumentation/ProfilePaths/GraphAuxiliary.cpp:1.25	Wed Sep  1 17:55:36 2004
+++ llvm/lib/Transforms/Instrumentation/ProfilePaths/GraphAuxiliary.cpp	Mon Oct 18 09:38:39 2004
@@ -638,7 +638,7 @@
 #ifdef DEBUG_PATH_PROFILES
   //debugging info
   cerr<<"After moving dummy code\n";
-  for(map<Edge, getEdgeCode *>::iterator cd_i=codeInsertions.begin(), 
+  for(map<Edge, getEdgeCode *,EdgeCompare2>::iterator cd_i=codeInsertions.begin(), 
 	cd_e=codeInsertions.end(); cd_i != cd_e; ++cd_i){
     printEdge(cd_i->first);
     cerr<<cd_i->second->getCond()<<":"
@@ -650,7 +650,7 @@
 
   //see what it looks like...
   //now insert code along edges which have codes on them
-  for(map<Edge, getEdgeCode *>::iterator MI=codeInsertions.begin(), 
+  for(map<Edge, getEdgeCode *,EdgeCompare2>::iterator MI=codeInsertions.begin(), 
 	ME=codeInsertions.end(); MI!=ME; ++MI){
     Edge ed=MI->first;
     insertBB(ed, MI->second, rInst, countInst, numPaths, MethNo, threshold);






More information about the llvm-commits mailing list