summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-02-22 23:22:58 +0000
committerChris Lattner <sabre@nondot.org>2005-02-22 23:22:58 +0000
commit52e931b37d89b937783dd670736817f668dd08a2 (patch)
treec07ad1a8b0dea44209a2d2aa25cf9c51f3c52297 /llvm/lib
parent2c073486961c24a49bd9dcb57407a2e024ea6a13 (diff)
downloadbcm5719-llvm-52e931b37d89b937783dd670736817f668dd08a2.tar.gz
bcm5719-llvm-52e931b37d89b937783dd670736817f668dd08a2.zip
Remove use of bind_obj
llvm-svn: 20276
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Transforms/Scalar/ADCE.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Scalar/ADCE.cpp b/llvm/lib/Transforms/Scalar/ADCE.cpp
index cb09a4e6fc6..089124a87f8 100644
--- a/llvm/lib/Transforms/Scalar/ADCE.cpp
+++ b/llvm/lib/Transforms/Scalar/ADCE.cpp
@@ -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
OpenPOWER on IntegriCloud