diff options
author | Nick Kledzik <kledzik@apple.com> | 2014-10-08 00:22:18 +0000 |
---|---|---|
committer | Nick Kledzik <kledzik@apple.com> | 2014-10-08 00:22:18 +0000 |
commit | 7c3f6ac57e7e7e0311708d43f97bd917c34ed537 (patch) | |
tree | fbcc7f1eb5880000720e6912b0d121cbe8ac5359 /llvm/lib/CodeGen/MachineFunction.cpp | |
parent | 8cd4c9d94778a302f140d661d1402b2cc7789b2b (diff) | |
download | llvm-7c3f6ac57e7e7e0311708d43f97bd917c34ed537.zip llvm-7c3f6ac57e7e7e0311708d43f97bd917c34ed537.tar.gz llvm-7c3f6ac57e7e7e0311708d43f97bd917c34ed537.tar.bz2 |
[Support] Add MemoryBuffer::getFileSlice()
mach-o supports "fat" files which are a header/table-of-contents followed by a
concatenation of mach-o files built for 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.
llvm-svn: 219260
Diffstat (limited to 'llvm/lib/CodeGen/MachineFunction.cpp')
0 files changed, 0 insertions, 0 deletions