diff options
author | Chris Lattner <sabre@nondot.org> | 2005-02-22 23:22:58 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2005-02-22 23:22:58 +0000 |
commit | cfa2f8eef4bd49c4f7bbab8c79732d203d404782 (patch) | |
tree | ef7d23b2766f7e2699aa7c9d84ee0336863c681d | |
parent | 127a8a7764d417405aa0d16c244c48a517eb70ae (diff) | |
download | external_llvm-cfa2f8eef4bd49c4f7bbab8c79732d203d404782.zip external_llvm-cfa2f8eef4bd49c4f7bbab8c79732d203d404782.tar.gz external_llvm-cfa2f8eef4bd49c4f7bbab8c79732d203d404782.tar.bz2 |
Remove use of bind_obj
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20276 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Transforms/Scalar/ADCE.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/Transforms/Scalar/ADCE.cpp b/lib/Transforms/Scalar/ADCE.cpp index cb09a4e..089124a 100644 --- a/lib/Transforms/Scalar/ADCE.cpp +++ b/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 |