[llvm-commits] [patch][gold-plugin] Don't open the files already opened by gold

Rafael Avila de Espindola rafael.espindola at gmail.com
Tue Feb 8 13:02:58 PST 2011


I noticed that we were opening the same file three times. Once in gold 
and twice via libLTO. This patch fixes that. The only big change is that 
MemoryBuffer::getOpenFile will not close the files any more . I have 
updated the callers.

Let me know if I should add a MemoryBuffer::getOpenFile2 or something.

Cheers,
Rafael
-------------- next part --------------
A non-text attachment was scrubbed...
Name: clang.patch
Type: text/x-patch
Size: 551 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20110208/54bdcc10/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: llvm.patch
Type: text/x-patch
Size: 6819 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20110208/54bdcc10/attachment-0001.bin>


More information about the llvm-commits mailing list