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 | 3756b9131328ae542160437cb81c438cf018007d (patch) | |
tree | 52af6e021a9c27309080d8fe4ce2bba8118180a0 /llvm/lib/VMCore/LLVMContextImpl.cpp | |
parent | 11eeeff24f4355033e9e580858e716512b1e1094 (diff) | |
download | bcm5719-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.cpp | 5 |
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; |