From f3e84b179078a35ea26f8744428105a82f6563ca Mon Sep 17 00:00:00 2001 From: Benjamin Kramer Date: Thu, 29 Nov 2012 20:08:03 +0000 Subject: [PATCH] Object: Pass the buffer name through when making a copy. Should bring the buildbots back to life. llvm-svn: 168935 --- llvm/lib/Object/MachOObjectFile.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/llvm/lib/Object/MachOObjectFile.cpp b/llvm/lib/Object/MachOObjectFile.cpp index bcea3bb5e91e..85116cb27379 100644 --- a/llvm/lib/Object/MachOObjectFile.cpp +++ b/llvm/lib/Object/MachOObjectFile.cpp @@ -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); }