[PATCH] [Support] Add MemoryBuffer::getFileSlice()
kledzik at apple.com
kledzik at apple.com
Fri Sep 19 18:35:56 PDT 2014
Hi rafael,
mach-o supports "fat" files which are a header/table-of-contents followed by a concatenation of mach-o files of different architectures. Currently, MemoryBuffer has no easy way to map a subrange (slice) of a file which lld will need to select a mach-o slice of a fat file. The new function provides an easy way to map a slice of a file into a MemoryBuffer. Test case included.
http://reviews.llvm.org/D5423
Files:
include/llvm/Support/MemoryBuffer.h
lib/Support/MemoryBuffer.cpp
unittests/Support/MemoryBufferTest.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D5423.13901.patch
Type: text/x-patch
Size: 7358 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140920/a84945d8/attachment.bin>
More information about the llvm-commits
mailing list