[PATCH] [lld] Add ArchiveMemoryBuffer.

Shankar Kalpathi Easwaran shankarke at gmail.com
Wed Feb 4 20:28:43 PST 2015


Hi Bigcheese, ruiu, kledzik, atanasyan,

The GNU flavor needs to recognize patterns in the linker script that may specify an archive only match rule. For this its needed that we have access to the member name and the archive name from a File. 

The second part of this patch is change the File class to own the MemoryBuffer, and provide API's to return the filename and membername.

http://reviews.llvm.org/D7428

Files:
  include/lld/Core/Node.h
  include/lld/Support/ArchiveMemoryBuffer.h
  lib/ReaderWriter/FileArchive.cpp
  unittests/CMakeLists.txt
  unittests/LLDSupportTests/ArchiveMemoryBufferTest.cpp
  unittests/LLDSupportTests/CMakeLists.txt
  unittests/LLDSupportTests/Makefile
  unittests/Makefile

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D7428.19378.patch
Type: text/x-patch
Size: 7192 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150205/48ba2746/attachment.bin>


More information about the llvm-commits mailing list