ADT: Add ilist_iterator conversions to/from ilist_node
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Fri, 12 Aug 2016 03:35:33 +0000 (03:35 +0000)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Fri, 12 Aug 2016 03:35:33 +0000 (03:35 +0000)
commitfb14ed0777b25eab6a29b4cd596964df5194eae5
tree81f54aad0c9d5325909829a54b35f01f65fe6679
parent7e103d92cc2b6d3e6d53a6353885cac9f00be84f
ADT: Add ilist_iterator conversions to/from ilist_node

Allow an ilist_iterator to be constructed from an ilist_node, and give
access to the underlying ilist_node as well.

This will be used immediately in lld to support a type-erasure use case.
Longer term, they'll stick around once the iterator is using
ilist_node<NodeTy>* instead of NodeTy*.

llvm-svn: 278467
llvm/include/llvm/ADT/ilist.h