Home

[Allocator] Make the underlying allocator a template instead of an

Press ? to show keyboard shortcuts.
Committed
chandlercApr 13 2014, 10:11 PM
Parents
rL206148: Fix the compile from r206147 in release builds by moving a variable
Branches
Unknown
Tags
Unknown
Subscribers
None
Projects
None
Description

[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. =]

rL206149

llvm/trunk/include/llvm/Support/Allocator.h

Loading...

llvm/trunk/lib/ExecutionEngine/JIT/JITMemoryManager.cpp

Loading...

llvm/trunk/lib/Support/Allocator.cpp

Loading...

llvm/trunk/unittests/Support/AllocatorTest.cpp

Loading...

Add Comment