mirror of
https://github.com/RPCS3/llvm.git
synced 2024-11-29 22:50:55 +00:00
Object: Pass the buffer name through when making a copy.
Should bring the buildbots back to life. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@168935 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
8facb9ecf2
commit
f56c3e28b9
@ -56,7 +56,8 @@ ObjectFile *ObjectFile::createMachOObjectFile(MemoryBuffer *Buffer) {
|
||||
// not a copy of the memory itself), so just make a new copy here for
|
||||
// the MachOObjectFile.
|
||||
MemoryBuffer *NewBuffer =
|
||||
MemoryBuffer::getMemBuffer(Buffer->getBuffer(), "", false);
|
||||
MemoryBuffer::getMemBuffer(Buffer->getBuffer(),
|
||||
Buffer->getBufferIdentifier(), false);
|
||||
return new MachOObjectFile(NewBuffer, MachOObj, ec);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user