From 3b963590ef2155d5786ea536c884925ed2587dbf Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Fri, 21 May 2004 18:37:13 +0000 Subject: [PATCH] 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 --- include/llvm/Support/CFG.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) 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!"); }