summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-ar/ArchiveReader.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Change llvm-ar to use lib/Object.Rafael Espindola2013-07-121-317/+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
* llvm-ar: Clean up memory management with OwningPtr.Benjamin Kramer2013-07-111-15/+9
| | | | llvm-svn: 186131
* Don't treat bitcode files specially in llvm-ar.Rafael Espindola2013-07-051-7/+0
| | | | | | | We really want bitcode files to behave as regular object files in archives, so we don't need to track that a member is bitcode. llvm-svn: 185681
* Remove remaining bits of the old LLVM specific symtab handling.Rafael Espindola2013-06-201-10/+0
| | | | llvm-svn: 184418
* Remove more unused functions.Rafael Espindola2013-06-201-63/+0
| | | | llvm-svn: 184416
* Remove unused methods.Rafael Espindola2013-06-201-139/+0
| | | | llvm-svn: 184415
* Remove last use of PathV1.h from Archive.hRafael Espindola2013-06-191-5/+5
| | | | | | Store the individual fields we need instead of a sys::FileStatus. llvm-svn: 184353
* Remove more uses of sys::Path.Rafael Espindola2013-06-191-11/+8
| | | | llvm-svn: 184328
* Remove unused function.Rafael Espindola2013-06-191-12/+0
| | | | llvm-svn: 184320
* Reduce sys::Path usage in llvm-ar.Rafael Espindola2013-06-191-1/+1
| | | | llvm-svn: 184315
* Move lib/Archive to tools/llvm-ar.Rafael Espindola2013-06-171-0/+557
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