OSDN Git Service
(root)
/
android-x86
/
external-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
61a4c07
)
Add an accessor to make ETForest more useful.
author
Owen Anderson
<resistor@mac.com>
Wed, 18 Apr 2007 04:38:39 +0000
(
04:38
+0000)
committer
Owen Anderson
<resistor@mac.com>
Wed, 18 Apr 2007 04:38:39 +0000
(
04:38
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36246
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
c550fe0
..
c8e753c
100644
(file)
--- a/
include/llvm/Analysis/Dominators.h
+++ b/
include/llvm/Analysis/Dominators.h
@@
-320,6
+320,13
@@
public:
return NULL;
return Common->getData<BasicBlock>();
}
+
+ /// Return the immediate dominator of A.
+ BasicBlock *getIDom(BasicBlock *A) {
+ ETNode *NodeA = getNode(A);
+ const ETNode *idom = NodeA->getFather();
+ return idom ? idom->getData<BasicBlock>() : 0;
+ }
virtual void getAnalysisUsage(AnalysisUsage &AU) const {
AU.setPreservesAll();