Helper method

llvm-svn: 9854
This commit is contained in:
Chris Lattner 2003-11-10 04:16:50 +00:00
parent 4474336166
commit f8deeafd91
1 changed files with 4 additions and 0 deletions

View File

@ -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); }