mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-01 16:40:15 +00:00
Make DominanceFrontier::addBasicBlock return the iterator for the newly
inserted block. llvm-svn: 85010
This commit is contained in:
parent
a4883a3903
commit
d60e3bf386
@ -905,9 +905,9 @@ public:
|
|||||||
iterator find(BasicBlock *B) { return Frontiers.find(B); }
|
iterator find(BasicBlock *B) { return Frontiers.find(B); }
|
||||||
const_iterator find(BasicBlock *B) const { return Frontiers.find(B); }
|
const_iterator find(BasicBlock *B) const { return Frontiers.find(B); }
|
||||||
|
|
||||||
void addBasicBlock(BasicBlock *BB, const DomSetType &frontier) {
|
iterator addBasicBlock(BasicBlock *BB, const DomSetType &frontier) {
|
||||||
assert(find(BB) == end() && "Block already in DominanceFrontier!");
|
assert(find(BB) == end() && "Block already in DominanceFrontier!");
|
||||||
Frontiers.insert(std::make_pair(BB, frontier));
|
return Frontiers.insert(std::make_pair(BB, frontier)).first;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// removeBlock - Remove basic block BB's frontier.
|
/// removeBlock - Remove basic block BB's frontier.
|
||||||
|
Loading…
Reference in New Issue
Block a user