forked from OSchip/llvm-project
Object: Pass the buffer name through when making a copy.
Should bring the buildbots back to life. llvm-svn: 168935
This commit is contained in:
parent
479b1b5986
commit
f3e84b1790
|
@ -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