[llvm] r200331 - Add BumpPtrAllocator::allocateCopy() utilities

Chandler Carruth chandlerc at google.com
Sat Feb 1 15:55:29 PST 2014


On Tue, Jan 28, 2014 at 11:21 AM, Nick Kledzik <kledzik at apple.com> wrote:

> Author: kledzik
> Date: Tue Jan 28 13:21:27 2014
> New Revision: 200331
>
> URL: http://llvm.org/viewvc/llvm-project?rev=200331&view=rev
> Log:
> Add BumpPtrAllocator::allocateCopy() utilities
>
> Makes it easy to use BumpPtrAllocator to make a copy of StringRef strings.
>

This seems like a strange conflation of role. Why is allocate() + std::copy
not sufficient? Or otherwise make these operations independent of the
memory management used?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140201/f39f0953/attachment.html>


More information about the llvm-commits mailing list