[Allocator] Finally, finish nuking the redundant code that led me here
authorChandler Carruth <chandlerc@gmail.com>
Tue, 15 Apr 2014 09:44:09 +0000 (09:44 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Tue, 15 Apr 2014 09:44:09 +0000 (09:44 +0000)
commitb9a99d459349148d3ac349066e143f17f185b43c
tree818d6d8a7add4c3c47fb3313588f1ffcf3798e81
parent15cbb64eb4bb19e3b21e1c75af3096bced18eb2a
[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
include/llvm/Support/Allocator.h
lib/ExecutionEngine/JIT/JITMemoryManager.cpp
unittests/Support/AllocatorTest.cpp