diff options
author | Chris Lattner <sabre@nondot.org> | 2012-01-23 22:57:10 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2012-01-23 22:57:10 +0000 |
commit | 27dd9cf5d1ec831a1cd0766580e6d1177a9800a3 (patch) | |
tree | 0d46a1cdc6cf49f0b395a3ad8b3e6a9ffd2d00da /lib/VMCore/LLVMContextImpl.cpp | |
parent | 4302a4965c4fffcecee23210dd1910d8d2c88259 (diff) |
start the implementation of a new ConstantDataVector and ConstantDataArray
classes, per PR1324. Not all of their helper functions are implemented,
nothing creates them, and the rest of the compiler doesn't handle them yet.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148741 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore/LLVMContextImpl.cpp')
-rw-r--r-- | lib/VMCore/LLVMContextImpl.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/VMCore/LLVMContextImpl.cpp b/lib/VMCore/LLVMContextImpl.cpp index 2eaebaceb1..15c5c24677 100644 --- a/lib/VMCore/LLVMContextImpl.cpp +++ b/lib/VMCore/LLVMContextImpl.cpp @@ -79,6 +79,11 @@ LLVMContextImpl::~LLVMContextImpl() { DeleteContainerSeconds(IntConstants); DeleteContainerSeconds(FPConstants); + for (StringMap<ConstantDataSequential*>::iterator I = CDSConstants.begin(), + E = CDSConstants.end(); I != E; ++I) + delete I->second; + CDSConstants.clear(); + // Destroy MDNodes. ~MDNode can move and remove nodes between the MDNodeSet // and the NonUniquedMDNodes sets, so copy the values out first. SmallVector<MDNode*, 8> MDNodes; |