diff options
author | Chris Lattner <sabre@nondot.org> | 2003-07-25 17:23:13 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2003-07-25 17:23:13 +0000 |
commit | 32862da7c7107d792d25a885f9bd2d0402ae7126 (patch) | |
tree | f9bfea1bc0e1a73c617088fe31c0b22c4e4ba69f /include | |
parent | ab63bd15f5e2c822197e9b9d91bec1c46fbec884 (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/ilist | 4 | ||||
-rw-r--r-- | include/llvm/ADT/ilist | 4 |
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) {} |