mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-17 21:29:20 +00:00
Starting an identifier with an _ is not legal C/C++ code.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13620 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
e5ad10a016
commit
3b963590ef
@ -90,20 +90,20 @@ inline pred_const_iterator pred_end(const BasicBlock *BB) {
|
|||||||
// BasicBlock succ_iterator definition
|
// BasicBlock succ_iterator definition
|
||||||
//===--------------------------------------------------------------------===//
|
//===--------------------------------------------------------------------===//
|
||||||
|
|
||||||
template <class _Term, class _BB> // Successor Iterator
|
template <class Term_, class BB_> // Successor Iterator
|
||||||
class SuccIterator : public bidirectional_iterator<_BB, ptrdiff_t> {
|
class SuccIterator : public bidirectional_iterator<BB_, ptrdiff_t> {
|
||||||
const _Term Term;
|
const Term_ Term;
|
||||||
unsigned idx;
|
unsigned idx;
|
||||||
typedef bidirectional_iterator<_BB, ptrdiff_t> super;
|
typedef bidirectional_iterator<BB_, ptrdiff_t> super;
|
||||||
public:
|
public:
|
||||||
typedef SuccIterator<_Term, _BB> _Self;
|
typedef SuccIterator<Term_, BB_> _Self;
|
||||||
typedef typename super::pointer pointer;
|
typedef typename super::pointer pointer;
|
||||||
// TODO: This can be random access iterator, need operator+ and stuff tho
|
// TODO: This can be random access iterator, need operator+ and stuff tho
|
||||||
|
|
||||||
inline SuccIterator(_Term T) : Term(T), idx(0) { // begin iterator
|
inline SuccIterator(Term_ T) : Term(T), idx(0) { // begin iterator
|
||||||
assert(T && "getTerminator returned null!");
|
assert(T && "getTerminator returned null!");
|
||||||
}
|
}
|
||||||
inline SuccIterator(_Term T, bool) // end iterator
|
inline SuccIterator(Term_ T, bool) // end iterator
|
||||||
: Term(T), idx(Term->getNumSuccessors()) {
|
: Term(T), idx(Term->getNumSuccessors()) {
|
||||||
assert(T && "getTerminator returned null!");
|
assert(T && "getTerminator returned null!");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user