History log of /external/llvm/unittests/ADT/ilistTest.cpp
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
b7d9df8c1dc6b4708f417dd107e7ef900ba586ba 13-May-2010 Daniel Dunbar <daniel@zuster.org> Fix const ilist_node::get{Prev,Next}Node() to actually compile. Picky, picky.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@103723 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/unittests/ADT/ilistTest.cpp
ef7a0bf9698fb111b5643c41dbb82d467f3cc8dd 12-May-2010 Daniel Dunbar <daniel@zuster.org> ADT: Add ilist_node::get{Prev,Next}Node, which return the adjacent node or null.
- This provides a convenient alternative to using something llvm::prior or
manual iterator access, for example::

if (T *Prev = foo->getPrevNode())
...

instead of::

iterator it(foo);
if (it != begin()) {
--it;
...
}

- Chris, please review.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@103647 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/unittests/ADT/ilistTest.cpp