diff options
| author | Chris Lattner <sabre@nondot.org> | 2003-11-10 04:16:50 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2003-11-10 04:16:50 +0000 |
| commit | b977ef2d54e6144ece686ed8d8360961820d1986 (patch) | |
| tree | 9e3a1b4f338ce33fb458c5a2baf053da63e8fcae | |
| parent | d23520cd9403c3c6fe8e7ea974ae0b593772345c (diff) | |
Helper method
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9854 91177308-0d34-0410-b5e6-96231b3b80d8
| -rw-r--r-- | include/llvm/Support/CFG.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/llvm/Support/CFG.h b/include/llvm/Support/CFG.h index 9355139f34..0a58104ee4 100644 --- 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); } |
