OSDN Git Service

Add an ArrayRecycler class.
authorJakob Stoklund Olesen <stoklund@2pi.dk>
Sat, 5 Jan 2013 00:57:11 +0000 (00:57 +0000)
committerJakob Stoklund Olesen <stoklund@2pi.dk>
Sat, 5 Jan 2013 00:57:11 +0000 (00:57 +0000)
commit8a0631a35e7719c5a3dc8678ec342fe5a83170da
tree26392b47ac856bfacb733a9e519b99b4bc858c7e
parent6a40db40eea4f3103cc05610949f5fe217739eea
Add an ArrayRecycler class.

This is similar to the existing Recycler allocator, but instead of
recycling individual objects from a BumpPtrAllocator, arrays of
different sizes can be allocated.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@171581 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Support/ArrayRecycler.h [new file with mode: 0644]
unittests/Support/ArrayRecylerTest.cpp [new file with mode: 0644]
unittests/Support/CMakeLists.txt