[Allocator] Lift the slab size and size threshold into template
authorChandler Carruth <chandlerc@gmail.com>
Sun, 30 Mar 2014 12:07:07 +0000 (12:07 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Sun, 30 Mar 2014 12:07:07 +0000 (12:07 +0000)
commit368a97729890a878389a9995e426c1042947f37a
tree1b123939a0636aa3d3c485402112960290aa67f1
parent0331a894cdf46d8186e74cf855dab19775695adc
[Allocator] Lift the slab size and size threshold into template
parameters rather than runtime parameters.

There is only one user of these parameters and they are compile time for
that user. Making these compile time seems to better reflect their
intended usage as well.

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