summaryrefslogtreecommitdiff
path: root/include/llvm/ADT/ilist.h
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2008-07-10 22:58:10 +0000
committerTed Kremenek <kremenek@apple.com>2008-07-10 22:58:10 +0000
commitccaa6540fc2866ab36f6ebecf6df101f613f8aa7 (patch)
treeeae1176b6877242bad01b9d736728345ffac3a91 /include/llvm/ADT/ilist.h
parent98fd7f6b2f109e16abf3e4279c971f8d3703b8a6 (diff)
downloadllvm-ccaa6540fc2866ab36f6ebecf6df101f613f8aa7.tar.gz
llvm-ccaa6540fc2866ab36f6ebecf6df101f613f8aa7.tar.bz2
llvm-ccaa6540fc2866ab36f6ebecf6df101f613f8aa7.tar.xz
Make typedefs in ilist public (Visual C++ errors out when they are private).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53431 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/ADT/ilist.h')
-rw-r--r--include/llvm/ADT/ilist.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/llvm/ADT/ilist.h b/include/llvm/ADT/ilist.h
index e66ee2f40b..8d9bab5caa 100644
--- a/include/llvm/ADT/ilist.h
+++ b/include/llvm/ADT/ilist.h
@@ -83,10 +83,11 @@ struct ilist_traits<const Ty> : public ilist_traits<Ty> {};
template<typename NodeTy>
class ilist_iterator
: public bidirectional_iterator<NodeTy, ptrdiff_t> {
+
+public:
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;