summaryrefslogtreecommitdiffstats
path: root/llvm/unittests/Support/AllocatorTest.cpp
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2014-04-15 09:44:09 +0000
committerChandler Carruth <chandlerc@gmail.com>2014-04-15 09:44:09 +0000
commit785a9228b678e3a4817fb9832c6b4060fbac3f46 (patch)
tree27bd2b2797f6e03f702cb559ab2d89ade6bfae01 /llvm/unittests/Support/AllocatorTest.cpp
parentb97f9e86982b068fd7ca5f35c812599562a74182 (diff)
downloadbcm5719-llvm-785a9228b678e3a4817fb9832c6b4060fbac3f46.tar.gz
bcm5719-llvm-785a9228b678e3a4817fb9832c6b4060fbac3f46.zip
[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. llvm-svn: 206267
Diffstat (limited to 'llvm/unittests/Support/AllocatorTest.cpp')
-rw-r--r--llvm/unittests/Support/AllocatorTest.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/unittests/Support/AllocatorTest.cpp b/llvm/unittests/Support/AllocatorTest.cpp
index 0ba45d78c2c..8c2ddadf7fa 100644
--- a/llvm/unittests/Support/AllocatorTest.cpp
+++ b/llvm/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;
OpenPOWER on IntegriCloud