diff --git a/include/llvm/Support/CFG.h b/include/llvm/Support/CFG.h index bbe1701da16..a20265cd0c4 100644 --- a/include/llvm/Support/CFG.h +++ b/include/llvm/Support/CFG.h @@ -90,20 +90,20 @@ inline pred_const_iterator pred_end(const BasicBlock *BB) { // BasicBlock succ_iterator definition //===--------------------------------------------------------------------===// -template // Successor Iterator -class SuccIterator : public bidirectional_iterator<_BB, ptrdiff_t> { - const _Term Term; +template // Successor Iterator +class SuccIterator : public bidirectional_iterator { + const Term_ Term; unsigned idx; - typedef bidirectional_iterator<_BB, ptrdiff_t> super; + typedef bidirectional_iterator super; public: - typedef SuccIterator<_Term, _BB> _Self; + typedef SuccIterator _Self; typedef typename super::pointer pointer; // 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!"); } - inline SuccIterator(_Term T, bool) // end iterator + inline SuccIterator(Term_ T, bool) // end iterator : Term(T), idx(Term->getNumSuccessors()) { assert(T && "getTerminator returned null!"); }