Added member template functions to MallocAllocator and
authorTed Kremenek <kremenek@apple.com>
Wed, 17 Oct 2007 21:10:21 +0000 (21:10 +0000)
committerTed Kremenek <kremenek@apple.com>
Wed, 17 Oct 2007 21:10:21 +0000 (21:10 +0000)
commit869a3344f17975f57a328dcc8bacf6775344c045
tree79de592fff4741cab2bbc9fd1d42c86b9df16b7a
parenta4d9869cf291e6f87bf9e7adfcd9a2c4e4518172
Added member template functions to MallocAllocator and
BumpPtrAllocator that implement allocations that return a properly
typed pointer.  For BumpPtrAllocator, the allocated memory is
automatically aligned to the minimum alignment of the type (as
calculated by llvm::AlignOf::Alignment).

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