Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Fix const ilist_node::get{Prev,Next}Node() to actually compile. Picky, picky. | Daniel Dunbar | 2010-05-13 | 1 | -0/+5 |
| | | | | llvm-svn: 103723 | ||||
* | ADT: Add ilist_node::get{Prev,Next}Node, which return the adjacent node or null. | Daniel Dunbar | 2010-05-12 | 1 | -0/+39 |
- 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. llvm-svn: 103647 |