[PATCH] New MemoryBufferRef constructor

Jonathan Anderson jonathan.anderson at mun.ca
Tue Jul 28 11:05:38 PDT 2015


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.

Cheers,


Jonathan Anderson
--
Assistant Professor
Electrical and Computer Engineering
Memorial University of Newfoundland

http://www.engr.mun.ca/~anderson
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: MemoryBufferRef.patch
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150728/45b312ef/attachment.ksh>


More information about the llvm-commits mailing list