[Allocator] Make the underlying allocator a template instead of an
authorChandler Carruth <chandlerc@gmail.com>
Mon, 14 Apr 2014 05:11:27 +0000 (05:11 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Mon, 14 Apr 2014 05:11:27 +0000 (05:11 +0000)
commit17f9c2e35b0f0caa44a7674347886de7c5bd05aa
tree6595232562ed912bc9d2bf13fadbd55d31433b02
parente20c45d2d8d9c3ddf909babbd1013128685b70d2
[Allocator] Make the underlying allocator a template instead of an
abstract interface. The only user of this functionality is the JIT
memory manager and it is quite happy to have a custom type here. This
removes a virtual function call and a lot of unnecessary abstraction
from the common case where this is just a *very* thin vaneer around
a call to malloc.

Hopefully still no functionality changed here. =]

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@206149 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Support/Allocator.h
lib/ExecutionEngine/JIT/JITMemoryManager.cpp
lib/Support/Allocator.cpp
unittests/Support/AllocatorTest.cpp