summaryrefslogtreecommitdiffstats
path: root/llvm/lib/VMCore/LLVMContextImpl.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2011-07-15 05:49:15 +0000
committerChris Lattner <sabre@nondot.org>2011-07-15 05:49:15 +0000
commit07bd69c446e66c56775cd6945c76af622e18791b (patch)
tree671187c3c39e1ddaa44d9e11df770318771ea28e /llvm/lib/VMCore/LLVMContextImpl.h
parentbbe2b9dbc4e015714c3abfcf1939d1bc992ad08a (diff)
downloadbcm5719-llvm-07bd69c446e66c56775cd6945c76af622e18791b.tar.gz
bcm5719-llvm-07bd69c446e66c56775cd6945c76af622e18791b.zip
bump pointer allocate LLVM IR types, since they are never deallocated.
llvm-svn: 135248
Diffstat (limited to 'llvm/lib/VMCore/LLVMContextImpl.h')
-rw-r--r--llvm/lib/VMCore/LLVMContextImpl.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/llvm/lib/VMCore/LLVMContextImpl.h b/llvm/lib/VMCore/LLVMContextImpl.h
index b26068d85f7..06a6f2a25a3 100644
--- a/llvm/lib/VMCore/LLVMContextImpl.h
+++ b/llvm/lib/VMCore/LLVMContextImpl.h
@@ -173,13 +173,17 @@ public:
Type X86_FP80Ty, FP128Ty, PPC_FP128Ty, X86_MMXTy;
IntegerType Int1Ty, Int8Ty, Int16Ty, Int32Ty, Int64Ty;
+
+ /// TypeAllocator - All dynamically allocated types are allocated from this.
+ /// They live forever until the context is torn down.
+ BumpPtrAllocator TypeAllocator;
+
DenseMap<unsigned, IntegerType*> IntegerTypes;
// TODO: Optimize FunctionTypes/AnonStructTypes!
std::map<std::vector<Type*>, FunctionType*> FunctionTypes;
std::map<std::vector<Type*>, StructType*> AnonStructTypes;
StringMap<StructType*> NamedStructTypes;
- SmallPtrSet<StructType*, 16> EmptyNamedStructTypes;
unsigned NamedStructTypesUniqueID;
DenseMap<std::pair<Type *, uint64_t>, ArrayType*> ArrayTypes;
OpenPOWER on IntegriCloud