projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
699b305
)
Add a new "DominatorSet::addDominator" method to allow updates
author
Chris Lattner
<sabre@nondot.org>
Thu, 26 Sep 2002 05:42:47 +0000
(
05:42
+0000)
committer
Chris Lattner
<sabre@nondot.org>
Thu, 26 Sep 2002 05:42:47 +0000
(
05:42
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3937
91177308
-0d34-0410-b5e6-
96231b3b80d8
include/llvm/Analysis/Dominators.h
patch
|
blob
|
history
diff --git
a/include/llvm/Analysis/Dominators.h
b/include/llvm/Analysis/Dominators.h
index c0c133b67f8f4bccd761443d0ce9a10966b3973c..af2a0e384c90810c931c0e08c257ec58c1d33ffd 100644
(file)
--- a/
include/llvm/Analysis/Dominators.h
+++ b/
include/llvm/Analysis/Dominators.h
@@
-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);
+ }
};