summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2008-07-10 23:09:45 +0000
committerTed Kremenek <kremenek@apple.com>2008-07-10 23:09:45 +0000
commit72a2d8e6b573762636429a7d20cc612769533e86 (patch)
tree91b08a23a6d761c915c7f0ae0c5cb0f15e4df891
parent483300f96de3fec86bcf6b9aa5b98e201899e012 (diff)
downloadbcm5719-llvm-72a2d8e6b573762636429a7d20cc612769533e86.tar.gz
bcm5719-llvm-72a2d8e6b573762636429a7d20cc612769533e86.zip
Make some typedefs public to make MSVC++ happy.
llvm-svn: 53432
-rw-r--r--llvm/include/llvm/ADT/alist.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/llvm/include/llvm/ADT/alist.h b/llvm/include/llvm/ADT/alist.h
index 46fa1205545..f4b8cf9a1df 100644
--- a/llvm/include/llvm/ADT/alist.h
+++ b/llvm/include/llvm/ADT/alist.h
@@ -24,9 +24,11 @@ namespace llvm {
template<class T, class LargestT = T, class ValueT = T,
class NodeIterT = ilist_iterator<alist_node<T, LargestT> > >
class alist_iterator : public bidirectional_iterator<ValueT, ptrdiff_t> {
+public:
typedef bidirectional_iterator<ValueT, ptrdiff_t> super;
typedef alist_node<T, LargestT> NodeTy;
+private:
/// NodeIter - The underlying iplist iterator that is being wrapped.
NodeIterT NodeIter;
@@ -144,9 +146,9 @@ struct simplify_type<const alist_iterator<V, W, X, Y> > {
///
template<class T, class LargestT = T>
class alist_traits {
+public:
typedef alist_iterator<T, LargestT> iterator;
-public:
void addNodeToList(T *) {}
void removeNodeFromList(T *) {}
void transferNodesFromList(alist_traits &, iterator, iterator) {}
@@ -159,9 +161,8 @@ public:
///
template<class T, class LargestT = T>
class alist {
- typedef alist_node<T, LargestT> NodeTy;
-
public:
+ typedef alist_node<T, LargestT> NodeTy;
typedef typename ilist<NodeTy>::size_type size_type;
private:
OpenPOWER on IntegriCloud