mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-17 09:12:42 +00:00
Remove use of bind_obj
llvm-svn: 20276
This commit is contained in:
parent
2024801b74
commit
b5256c157d
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user