[PATCH] ADT: Add SmallPtrSet::reset()

Duncan P. N. Exon Smith dexonsmith at apple.com
Thu Mar 19 16:43:05 PDT 2015


0001 adds `SmallPtrSet::reset()`, which returns `SmallPtrSet` to small
mode after completely freeing its heap memory.  To facilitate testing,
I changed `isSmall()` to a public accessor.

Thoughts?

(0002 is the reason I was looking at this.)


-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-ADT-Add-SmallPtrSet-reset.patch
Type: application/octet-stream
Size: 2774 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150319/19378bb0/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-VerifierLegacyPass-Release-memory-during-doFinalizat.patch
Type: application/octet-stream
Size: 1598 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150319/19378bb0/attachment-0001.obj>


More information about the llvm-commits mailing list