summaryrefslogtreecommitdiffstats
path: root/llvm/lib/VMCore/LLVMContextImpl.cpp
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.cpp
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.cpp')
-rw-r--r--llvm/lib/VMCore/LLVMContextImpl.cpp16
1 files changed, 0 insertions, 16 deletions
diff --git a/llvm/lib/VMCore/LLVMContextImpl.cpp b/llvm/lib/VMCore/LLVMContextImpl.cpp
index 2b6bb39167a..504b37267f7 100644
--- a/llvm/lib/VMCore/LLVMContextImpl.cpp
+++ b/llvm/lib/VMCore/LLVMContextImpl.cpp
@@ -91,20 +91,4 @@ LLVMContextImpl::~LLVMContextImpl() {
"Destroying all MDNodes didn't empty the Context's sets.");
// Destroy MDStrings.
DeleteContainerSeconds(MDStringCache);
-
- // Destroy types.
- DeleteContainerSeconds(IntegerTypes);
- DeleteContainerSeconds(FunctionTypes);
- DeleteContainerSeconds(AnonStructTypes);
- DeleteContainerSeconds(ArrayTypes);
- DeleteContainerSeconds(VectorTypes);
- DeleteContainerSeconds(PointerTypes);
- DeleteContainerSeconds(ASPointerTypes);
-
- for (StringMap<StructType *>::iterator I = NamedStructTypes.begin(),
- E = NamedStructTypes.end(); I != E; ++I)
- delete I->getValue();
- for (SmallPtrSet<StructType*, 16>::iterator I = EmptyNamedStructTypes.begin(),
- E = EmptyNamedStructTypes.end(); I != E; ++I)
- delete *I;
}
OpenPOWER on IntegriCloud