summaryrefslogtreecommitdiff
path: root/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
commitba3ddf391f5149b8fca073adc3cbca361353929c (patch)
tree6e042a3ea563d2968571f7e24a34e4d64ad2c2e7 /lib/VMCore/LLVMContextImpl.cpp
parentef58218b8dd9afc0251eeb673c10d448da45d281 (diff)
downloadllvm-ba3ddf391f5149b8fca073adc3cbca361353929c.tar.gz
llvm-ba3ddf391f5149b8fca073adc3cbca361353929c.tar.bz2
llvm-ba3ddf391f5149b8fca073adc3cbca361353929c.tar.xz
bump pointer allocate LLVM IR types, since they are never deallocated.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135248 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore/LLVMContextImpl.cpp')
-rw-r--r--lib/VMCore/LLVMContextImpl.cpp16
1 files changed, 0 insertions, 16 deletions
diff --git a/lib/VMCore/LLVMContextImpl.cpp b/lib/VMCore/LLVMContextImpl.cpp
index 2b6bb39167..504b37267f 100644
--- a/lib/VMCore/LLVMContextImpl.cpp
+++ b/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;
}