From 3000357ab58707faaa8ecb885c1ae09eb211e7c1 Mon Sep 17 00:00:00 2001 From: Ted Kremenek Date: Thu, 10 Jul 2008 23:09:45 +0000 Subject: [PATCH] Make some typedefs public to make MSVC++ happy. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53432 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/ADT/alist.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/include/llvm/ADT/alist.h b/include/llvm/ADT/alist.h index 46fa1205545..f4b8cf9a1df 100644 --- a/include/llvm/ADT/alist.h +++ b/include/llvm/ADT/alist.h @@ -24,9 +24,11 @@ namespace llvm { template > > class alist_iterator : public bidirectional_iterator { +public: typedef bidirectional_iterator super; typedef alist_node NodeTy; +private: /// NodeIter - The underlying iplist iterator that is being wrapped. NodeIterT NodeIter; @@ -144,9 +146,9 @@ struct simplify_type > { /// template class alist_traits { +public: typedef alist_iterator iterator; -public: void addNodeToList(T *) {} void removeNodeFromList(T *) {} void transferNodesFromList(alist_traits &, iterator, iterator) {} @@ -159,9 +161,8 @@ public: /// template class alist { - typedef alist_node NodeTy; - public: + typedef alist_node NodeTy; typedef typename ilist::size_type size_type; private: