diff options
author | Chandler Carruth <chandlerc@gmail.com> | 2014-04-15 09:44:09 +0000 |
---|---|---|
committer | Chandler Carruth <chandlerc@gmail.com> | 2014-04-15 09:44:09 +0000 |
commit | b9a99d459349148d3ac349066e143f17f185b43c (patch) | |
tree | 818d6d8a7add4c3c47fb3313588f1ffcf3798e81 /unittests | |
parent | 15cbb64eb4bb19e3b21e1c75af3096bced18eb2a (diff) | |
download | llvm-b9a99d459349148d3ac349066e143f17f185b43c.tar.gz llvm-b9a99d459349148d3ac349066e143f17f185b43c.tar.bz2 llvm-b9a99d459349148d3ac349066e143f17f185b43c.tar.xz |
[Allocator] Finally, finish nuking the redundant code that led me here
by removing the MallocSlabAllocator entirely and just using
MallocAllocator directly. This makes all off these allocators expose and
utilize the same core interface.
The only ugly part of this is that it exposes the fact that the JIT
allocator has no real handling of alignment, any more than the malloc
allocator does. =/ It would be nice to fix both of these to support
alignments, and then to leverage that in the BumpPtrAllocator to do less
over allocation in order to manually align pointers. But, that's another
patch for another day. This patch has no functional impact, it just
removes the somewhat meaningless wrapper around MallocAllocator.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@206267 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'unittests')
-rw-r--r-- | unittests/Support/AllocatorTest.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/unittests/Support/AllocatorTest.cpp b/unittests/Support/AllocatorTest.cpp index 0ba45d78c2..8c2ddadf7f 100644 --- a/unittests/Support/AllocatorTest.cpp +++ b/unittests/Support/AllocatorTest.cpp @@ -108,7 +108,7 @@ class MockSlabAllocator { public: ~MockSlabAllocator() { } - void *Allocate(size_t Size) { + void *Allocate(size_t Size, size_t /*Alignment*/) { // Allocate space for the alignment, the slab, and a void* that goes right // before the slab. size_t Alignment = 4096; |