summaryrefslogtreecommitdiffstats
path: root/llvm/lib/VMCore/LLVMContextImpl.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2012-01-23 22:57:10 +0000
committerChris Lattner <sabre@nondot.org>2012-01-23 22:57:10 +0000
commit3756b9131328ae542160437cb81c438cf018007d (patch)
tree52af6e021a9c27309080d8fe4ce2bba8118180a0 /llvm/lib/VMCore/LLVMContextImpl.cpp
parent11eeeff24f4355033e9e580858e716512b1e1094 (diff)
downloadbcm5719-llvm-3756b9131328ae542160437cb81c438cf018007d.tar.gz
bcm5719-llvm-3756b9131328ae542160437cb81c438cf018007d.zip
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. llvm-svn: 148741
Diffstat (limited to 'llvm/lib/VMCore/LLVMContextImpl.cpp')
-rw-r--r--llvm/lib/VMCore/LLVMContextImpl.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/lib/VMCore/LLVMContextImpl.cpp b/llvm/lib/VMCore/LLVMContextImpl.cpp
index 2eaebaceb1d..15c5c246772 100644
--- a/llvm/lib/VMCore/LLVMContextImpl.cpp
+++ b/llvm/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;
OpenPOWER on IntegriCloud