Don't open the file again in the gold plugin. To be able to do this, update
authorRafael Espindola <rafael.espindola@gmail.com>
Tue, 8 Feb 2011 22:40:47 +0000 (22:40 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Tue, 8 Feb 2011 22:40:47 +0000 (22:40 +0000)
commitb4cc031a3e1306fea74c9211d50c5cde6d9a8cd5
tree80f2d7365cd402e9040ed85abf3b06a17d59f423
parent971b83b67a9812556cdb97bb58aa96fb37af458d
Don't open the file again in the gold plugin. To be able to do this, update
MemoryBuffer::getOpenFile to not close the file descriptor.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@125128 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm-c/lto.h
include/llvm/Support/MemoryBuffer.h
lib/Support/MemoryBuffer.cpp
tools/gold/gold-plugin.cpp
tools/lto/LTOModule.cpp
tools/lto/LTOModule.h
tools/lto/lto.cpp
tools/lto/lto.exports