Remove use of bind_obj
authorChris Lattner <sabre@nondot.org>
Tue, 22 Feb 2005 23:22:58 +0000 (23:22 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 22 Feb 2005 23:22:58 +0000 (23:22 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20276 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Scalar/ADCE.cpp

index cb09a4e6fc6b4a1782c9c96bf563fd92c2e21fde..089124a87f803079f390f2db632cf420c3cc49a8 100644 (file)
@@ -116,8 +116,9 @@ void ADCE::markBlockAlive(BasicBlock *BB) {
   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