summaryrefslogtreecommitdiffstats
path: root/llvm/unittests/ADT/ArrayRefTest.cpp
diff options
context:
space:
mode:
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>2016-08-30 18:40:47 +0000
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>2016-08-30 18:40:47 +0000
commitf947c3afe10cf4a8ca3574ddd4deee2032254c53 (patch)
treeb84e7e98ea1822fdbbbd62346ad43cf00e4bca3c /llvm/unittests/ADT/ArrayRefTest.cpp
parent982a3bcc4896d3edb7c66d69095335eddcae5c18 (diff)
downloadbcm5719-llvm-f947c3afe10cf4a8ca3574ddd4deee2032254c53.tar.gz
bcm5719-llvm-f947c3afe10cf4a8ca3574ddd4deee2032254c53.zip
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
Diffstat (limited to 'llvm/unittests/ADT/ArrayRefTest.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud