summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-ar/ArchiveInternals.h
Commit message (Collapse)AuthorAgeFilesLines
* Change llvm-ar to use lib/Object.Rafael Espindola2013-07-121-75/+0
| | | | | | | | | | | | | | | | | | | | | | 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. llvm-svn: 186197
* Remove remaining bits of the old LLVM specific symtab handling.Rafael Espindola2013-06-201-7/+0
| | | | llvm-svn: 184418
* Remove unused function.Rafael Espindola2013-06-191-7/+1
| | | | llvm-svn: 184359
* Remove last use of PathV1.h from Archive.hRafael Espindola2013-06-191-0/+1
| | | | | | Store the individual fields we need instead of a sys::FileStatus. llvm-svn: 184353
* Move lib/Archive to tools/llvm-ar.Rafael Espindola2013-06-171-0/+87
llvm-ar is the only tool that needs to write archive files. Every other tool should be able to use the lib/Object interface. llvm-svn: 184083
OpenPOWER on IntegriCloud