[Allocator] Pass the size to the deallocation function. This, on some
authorChandler Carruth <chandlerc@gmail.com>
Tue, 15 Apr 2014 08:59:52 +0000 (08:59 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Tue, 15 Apr 2014 08:59:52 +0000 (08:59 +0000)
commit47b284ce3539ef216e0ab994f4b7d762cfb1c69a
tree6111d2fb0d403c8d94d6889e729b6d509574f0ed
parent2727dbcc3766108eca20f48f249aaa87c5a566a2
[Allocator] Pass the size to the deallocation function. This, on some
allocation libraries, may allow more efficient allocation and
deallocation. It at least makes the interface implementable by the JIT
memory manager.

However, this highlights problematic overloading between the void* and
the T* deallocation functions. I'm looking into a better way to do this,
but as it happens, it comes up rarely in the codebase.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@206265 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/ADT/StringMap.h
include/llvm/Support/Allocator.h
include/llvm/Support/YAMLParser.h