[llvm-commits] CVS: llvm/lib/Transforms/Scalar/ADCE.cpp

Chris Lattner lattner at cs.uiuc.edu
Tue Feb 22 15:23:14 PST 2005



Changes in directory llvm/lib/Transforms/Scalar:

ADCE.cpp updated: 1.89 -> 1.90
---
Log message:

Remove use of bind_obj


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

 ADCE.cpp |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)


Index: llvm/lib/Transforms/Scalar/ADCE.cpp
diff -u llvm/lib/Transforms/Scalar/ADCE.cpp:1.89 llvm/lib/Transforms/Scalar/ADCE.cpp:1.90
--- llvm/lib/Transforms/Scalar/ADCE.cpp:1.89	Thu Feb 17 13:28:49 2005
+++ llvm/lib/Transforms/Scalar/ADCE.cpp	Tue Feb 22 17:22:58 2005
@@ -116,8 +116,9 @@
   if (It != CDG.end()) {
     // Get the blocks that this node is control dependent on...
     const PostDominanceFrontier::DomSetType &CDB = It->second;
-    for_each(CDB.begin(), CDB.end(),   // Mark all their terminators as live
-             bind_obj(this, &ADCE::markTerminatorLive));
+    for (PostDominanceFrontier::DomSetType::const_iterator I = 
+           CDB.begin(), E = CDB.end(); I != E; ++I)
+      markTerminatorLive(*I);   // Mark all their terminators as live
   }
   
   // If this basic block is live, and it ends in an unconditional branch, then






More information about the llvm-commits mailing list