mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 19:52:54 +01:00
Add a new "DominatorSet::addDominator" method to allow updates
llvm-svn: 3937
This commit is contained in:
parent
bfa0786c7e
commit
aebc47d30a
@ -107,6 +107,15 @@ public:
|
||||
assert(find(BB) == end() && "Block already in DominatorSet!");
|
||||
Doms.insert(std::make_pair(BB, Dominators));
|
||||
}
|
||||
|
||||
// addDominator - If a new block is inserted into the CFG, then method may be
|
||||
// called to notify the blocks it dominates that it is in their set.
|
||||
//
|
||||
void addDominator(BasicBlock *BB, BasicBlock *NewDominator) {
|
||||
iterator I = find(BB);
|
||||
assert(I != end() && "BB is not in DominatorSet!");
|
||||
I->second.insert(NewDominator);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user