Allocate the basic types inside the LLVMContextImpl instance,
authorDan Gohman <gohman@apple.com>
Tue, 25 Aug 2009 16:00:35 +0000 (16:00 +0000)
committerDan Gohman <gohman@apple.com>
Tue, 25 Aug 2009 16:00:35 +0000 (16:00 +0000)
commit63a03cf58505aa839f721f212cd1518ebf133979
tree4ac56bba954094c78fe415821f69455a01c4c20a
parent0cabaa54e512420f3057ffe781ff317ecb9196ed
Allocate the basic types inside the LLVMContextImpl instance,
rather than separately with new. Move the members above the
TypeMap members to avoid destruction order issues. This fixes
a leak of these objects, and eliminates an extra level of
indirection in Type::getInt32Ty and friends.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79997 91177308-0d34-0410-b5e6-96231b3b80d8
lib/VMCore/LLVMContextImpl.h
lib/VMCore/Type.cpp