llvm-6502/lib/Object
Rafael Espindola 34ac52d937 Change llvm-ar to use lib/Object.
This fixes two bugs is lib/Object that the use in llvm-ar found:
* In OS X created archives, the name can be padded with nulls. Strip them.
* In the constructor, remember the first non special member and use that in
  begin_children. This makes sure we skip all special members, not just the
  first one.

The change to llvm-ar itself consist of
* Using lib/Object for reading archives instead of ArchiveReader.cpp.
* Writing the modified archive directly, instead of creating an in memory
  representation.

The old Archive library was way more general than what is needed, as can
be seen by the diffstat of this patch.

Having llvm-ar using lib/Object now opens the way for creating regular symbol
tables for both native objects and bitcode files so that we can use those
archives for LTO.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@186197 91177308-0d34-0410-b5e6-96231b3b80d8
2013-07-12 20:21:39 +00:00
..
Archive.cpp Change llvm-ar to use lib/Object. 2013-07-12 20:21:39 +00:00
Binary.cpp Make a switch in createBinary fully-covered. Add forgotten macho_dsym_companion case. 2013-06-28 09:44:05 +00:00
CMakeLists.txt Basic support for parsing Mach-O universal binaries in LLVMObject library 2013-06-18 15:03:28 +00:00
COFFObjectFile.cpp readobj: Dump PE/COFF optional records. 2013-06-12 19:10:33 +00:00
COFFYAML.cpp Print symbol names in relocations when dumping COFF as YAML. 2013-06-06 13:06:17 +00:00
ELFObjectFile.cpp
ELFYAML.cpp [yaml2obj][ELF] Make symbol table top-level key. 2013-06-22 01:38:00 +00:00
Error.cpp Basic support for parsing Mach-O universal binaries in LLVMObject library 2013-06-18 15:03:28 +00:00
LLVMBuild.txt
MachOObjectFile.cpp Basic support for parsing Mach-O universal binaries in LLVMObject library 2013-06-18 15:03:28 +00:00
MachOUniversal.cpp MachOUniversal.cpp: Fix abuse of Twine. It would be sufficient to use std::string instead. 2013-06-19 09:55:05 +00:00
Makefile
Object.cpp Handle relocations that don't point to symbols. 2013-06-05 01:33:53 +00:00
ObjectFile.cpp Basic support for parsing Mach-O universal binaries in LLVMObject library 2013-06-18 15:03:28 +00:00
YAML.cpp Make BinaryRef output correctly in case of empty data. 2013-07-09 00:54:46 +00:00