group friendship

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@65633 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Gabor Greif 2009-02-27 15:46:23 +00:00
parent 9a58023c6c
commit a05764c4fb

View File

@ -30,6 +30,7 @@ template<typename NodeTy>
class ilist_node {
private:
friend struct ilist_nextprev_traits<NodeTy>;
friend struct ilist_traits<NodeTy>;
NodeTy *Prev, *Next;
NodeTy *getPrev() { return Prev; }
NodeTy *getNext() { return Next; }
@ -39,7 +40,6 @@ private:
void setNext(NodeTy *N) { Next = N; }
protected:
ilist_node() : Prev(0), Next(0) {}
friend struct ilist_traits<NodeTy>;
};
} // End llvm namespace