[LLVMdev] LLVM and memory leaks

Chris Lattner sabre at nondot.org
Fri Nov 19 09:03:07 PST 2004


On Fri, 19 Nov 2004, Morten Ofstad wrote:
> I have redone the implementation of clearAllValueMaps and
> clearAllTypeMaps so they are now static member functions of Constant and
> Type respectively. I've implemented both in exactly the same way now,
> first clear the maps and put the Types/Constants in a vector, then drop
> references, then delete the Types/Constants and finally clear the
> vector. I don't think it is possible to implement it any cleaner than
> this, so I hope you will take the patch now ^^

Applied:
http://mail.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20041115/020966.html
http://mail.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20041115/020967.html

Thanks!

-Chris

-- 
http://llvm.org/
http://nondot.org/sabre/





More information about the llvm-dev mailing list