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:
d23520c
)
Helper method
author
Chris Lattner
<sabre@nondot.org>
Mon, 10 Nov 2003 04:16:50 +0000
(
04:16
+0000)
committer
Chris Lattner
<sabre@nondot.org>
Mon, 10 Nov 2003 04:16:50 +0000
(
04:16
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9854
91177308
-0d34-0410-b5e6-
96231b3b80d8
include/llvm/Support/CFG.h
patch
|
blob
|
history
diff --git
a/include/llvm/Support/CFG.h
b/include/llvm/Support/CFG.h
index 9355139f34ae81ff13cf39f8f9987235d293c06f..0a58104ee4f49f2b13c4af1e7b923b86ca47a6c4 100644
(file)
--- a/
include/llvm/Support/CFG.h
+++ b/
include/llvm/Support/CFG.h
@@
-111,6
+111,10
@@
public:
idx = I.idx;
return *this;
}
+
+ /// getSuccessorIndex - This is used to interface between code that wants to
+ /// operate on terminator instructions directly.
+ unsigned getSuccessorIndex() const { return Idx; }
inline bool operator==(const _Self& x) const { return idx == x.idx; }
inline bool operator!=(const _Self& x) const { return !operator==(x); }