mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-04-11 00:39:36 +00:00
Make SuccIterator's private parts private too.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@101244 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
0118b8d86d
commit
8bc489fd7f
@ -91,8 +91,13 @@ class SuccIterator : public std::iterator<std::bidirectional_iterator_tag,
|
||||
const Term_ Term;
|
||||
unsigned idx;
|
||||
typedef std::iterator<std::bidirectional_iterator_tag, BB_, ptrdiff_t> super;
|
||||
public:
|
||||
typedef SuccIterator<Term_, BB_> _Self;
|
||||
|
||||
inline bool index_is_valid(int idx) {
|
||||
return idx >= 0 && (unsigned) idx < Term->getNumSuccessors();
|
||||
}
|
||||
|
||||
public:
|
||||
typedef typename super::pointer pointer;
|
||||
// TODO: This can be random access iterator, only operator[] missing.
|
||||
|
||||
@ -110,10 +115,6 @@ public:
|
||||
return *this;
|
||||
}
|
||||
|
||||
inline bool index_is_valid (int idx) {
|
||||
return idx >= 0 && (unsigned) idx < Term->getNumSuccessors();
|
||||
}
|
||||
|
||||
/// getSuccessorIndex - This is used to interface between code that wants to
|
||||
/// operate on terminator instructions directly.
|
||||
unsigned getSuccessorIndex() const { return idx; }
|
||||
|
Loading…
x
Reference in New Issue
Block a user