llvm.org GIT mirror llvm / 8bc489f
Make SuccIterator's private parts private too. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@101244 91177308-0d34-0410-b5e6-96231b3b80d8 Dan Gohman 10 years ago
1 changed file(s) with 6 addition(s) and 5 deletion(s). Raw diff Collapse all Expand all
9090 const Term_ Term;
9191 unsigned idx;
9292 typedef std::iterator super;
93 typedef SuccIterator _Self;
94
95 inline bool index_is_valid(int idx) {
96 return idx >= 0 && (unsigned) idx < Term->getNumSuccessors();
97 }
98
9399 public:
94 typedef SuccIterator _Self;
95100 typedef typename super::pointer pointer;
96101 // TODO: This can be random access iterator, only operator[] missing.
97102
107112 assert(Term == I.Term &&"Cannot assign iterators to two different blocks!");
108113 idx = I.idx;
109114 return *this;
110 }
111
112 inline bool index_is_valid (int idx) {
113 return idx >= 0 && (unsigned) idx < Term->getNumSuccessors();
114115 }
115116
116117 /// getSuccessorIndex - This is used to interface between code that wants to