From 79ba83de003a009dbf39d8a5b3f63d426c57d283 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Mon, 10 Nov 2003 04:16:50 +0000 Subject: [PATCH] Helper method llvm-svn: 9854 --- include/llvm/Support/CFG.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/llvm/Support/CFG.h b/include/llvm/Support/CFG.h index 9355139f34a..0a58104ee4f 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); }