[llvm-commits] [llvm] r101244 - /llvm/trunk/include/llvm/Support/CFG.h
Dan Gohman
gohman at apple.com
Wed Apr 14 08:38:15 PDT 2010
Author: djg
Date: Wed Apr 14 10:38:15 2010
New Revision: 101244
URL: http://llvm.org/viewvc/llvm-project?rev=101244&view=rev
Log:
Make SuccIterator's private parts private too.
Modified:
llvm/trunk/include/llvm/Support/CFG.h
Modified: llvm/trunk/include/llvm/Support/CFG.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Support/CFG.h?rev=101244&r1=101243&r2=101244&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Support/CFG.h (original)
+++ llvm/trunk/include/llvm/Support/CFG.h Wed Apr 14 10:38:15 2010
@@ -91,8 +91,13 @@
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 @@
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; }
More information about the llvm-commits
mailing list