aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-07-25 17:23:13 +0000
committerChris Lattner <sabre@nondot.org>2003-07-25 17:23:13 +0000
commit32862da7c7107d792d25a885f9bd2d0402ae7126 (patch)
treef9bfea1bc0e1a73c617088fe31c0b22c4e4ba69f /include
parentab63bd15f5e2c822197e9b9d91bec1c46fbec884 (diff)
Fix accessibility problems GCC 3.3
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7306 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/Support/ilist4
-rw-r--r--include/llvm/ADT/ilist4
2 files changed, 6 insertions, 2 deletions
diff --git a/include/Support/ilist b/include/Support/ilist
index 83a1fe670e..afd858d559 100644
--- a/include/Support/ilist
+++ b/include/Support/ilist
@@ -74,11 +74,13 @@ class ilist_iterator
typedef ilist_traits<NodeTy> Traits;
typedef bidirectional_iterator<NodeTy, ptrdiff_t> super;
+public:
+ typedef size_t size_type;
typedef typename super::pointer pointer;
typedef typename super::reference reference;
+private:
pointer NodePtr;
public:
- typedef size_t size_type;
ilist_iterator(pointer NP) : NodePtr(NP) {}
ilist_iterator(reference NR) : NodePtr(&NR) {}
diff --git a/include/llvm/ADT/ilist b/include/llvm/ADT/ilist
index 83a1fe670e..afd858d559 100644
--- a/include/llvm/ADT/ilist
+++ b/include/llvm/ADT/ilist
@@ -74,11 +74,13 @@ class ilist_iterator
typedef ilist_traits<NodeTy> Traits;
typedef bidirectional_iterator<NodeTy, ptrdiff_t> super;
+public:
+ typedef size_t size_type;
typedef typename super::pointer pointer;
typedef typename super::reference reference;
+private:
pointer NodePtr;
public:
- typedef size_t size_type;
ilist_iterator(pointer NP) : NodePtr(NP) {}
ilist_iterator(reference NR) : NodePtr(&NR) {}