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:
Benjamin Kramer 2012-11-29 20:08:03 +00:00
parent 479b1b5986
commit f3e84b1790
1 changed files with 2 additions and 1 deletions

View File

@ -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);
}