1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-01-31 20:51:52 +01:00
Duncan P. N. Exon Smith 9df0e64f25 ADT: Split ilist_node_traits into alloc and callback, NFC
Many lists want to override only allocation semantics, or callbacks for
iplist.  Split these up to prevent code duplication.
- Specialize ilist_alloc_traits to change the implementations of
  deleteNode() and createNode().
- One common desire is to do nothing deleteNode() and disable
  createNode().  Specialize ilist_alloc_traits to inherit from
  ilist_noalloc_traits for that behaviour.
- Specialize ilist_callback_traits to use the addNodeToList(),
  removeNodeFromList(), and transferNodesFromList() callbacks.

As a drive-by, add some coverage to the callback-related unit tests.

llvm-svn: 280128
2016-08-30 18:40:47 +00:00
..
2016-06-30 18:25:11 +00:00
2016-06-21 19:48:12 +00:00
2014-09-02 22:32:20 +00:00
2016-08-22 11:55:22 +00:00
2016-08-22 11:55:22 +00:00
2016-08-22 11:55:22 +00:00
2015-10-05 12:07:05 +00:00
2016-08-22 11:55:22 +00:00
2016-08-22 11:55:22 +00:00
2016-08-22 11:55:22 +00:00