[PATCH] New MemoryBufferRef constructor

Peter Collingbourne peter at pcc.me.uk
Tue Jul 28 14:11:25 PDT 2015


On Tue, Jul 28, 2015 at 03:35:38PM -0230, Jonathan Anderson wrote:
> Greetings,
>
> The attached patch (also available at http://reviews.llvm.org/D11560)  
> allows one to construct a MemoryBufferRef from a MemoryBuffer reference.  
> This doesn’t seem to be needed within LLVM itself, but it’s helpful when 
> calling into LLVM APIs that require a MemoryBufferRef (from client  
> code).
>
> The actual code change is just two lines, and I’ve also added a unit  
> test for the new constructor.

Are you aware of MemoryBuffer::getMemBufferRef() ?

Thanks,
-- 
Peter




More information about the llvm-commits mailing list