Remove use of bind_obj

llvm-svn: 20276
This commit is contained in:
Chris Lattner 2005-02-22 23:22:58 +00:00
parent 2024801b74
commit b5256c157d

View File

@ -116,8 +116,9 @@ void ADCE::markBlockAlive(BasicBlock *BB) {
if (It != CDG.end()) { if (It != CDG.end()) {
// Get the blocks that this node is control dependent on... // Get the blocks that this node is control dependent on...
const PostDominanceFrontier::DomSetType &CDB = It->second; const PostDominanceFrontier::DomSetType &CDB = It->second;
for_each(CDB.begin(), CDB.end(), // Mark all their terminators as live for (PostDominanceFrontier::DomSetType::const_iterator I =
bind_obj(this, &ADCE::markTerminatorLive)); 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 // If this basic block is live, and it ends in an unconditional branch, then