summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-ar/ArchiveWriter.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Fixes problem when calling llvm-ar from an unmodifiable directory.Manuel Klimek2013-07-081-2/+2
| | | | | | | | | This fixes a regression introduced by r185726: the new call to get a unique file does not prepend the system temporary directory, so we need to anchor on the file that the temporary file gets moved to to ensure we're on the same file system. llvm-svn: 185825
* Add a createUniqueFile function and switch llvm's users of unique_file.Rafael Espindola2013-07-051-2/+2
| | | | | | | | | | | | | | This function is complementary to createTemporaryFile. It handles the case were the unique file is *not* temporary: we will rename it in the end. Since we will rename it, the file has to be in the same filesystem as the final destination and we don't prepend the system temporary directory. This has a small semantic difference from unique_file: the default mode is 0666. This matches the behavior of most unix tools. For example, with this change lld now produces files with the same permissions as ld. I will add a test of this change when I port clang over to createUniqueFile (next commit). llvm-svn: 185726
* 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
* Use enums instead of raw octal values.Rafael Espindola2013-06-261-1/+1
| | | | | | Patch by 罗勇刚(Yonggang Luo). llvm-svn: 184971
* Create the file with the right permissions instead of setting it afterwards.Rafael Espindola2013-06-221-9/+1
| | | | | | Removes the last use of PathV1.h in llvm-ar. llvm-svn: 184630
* Convert some uses of PathV1.h in ArchiveWriter.cpp.Rafael Espindola2013-06-211-27/+27
| | | | llvm-svn: 184599
* Add r184420 back, but also handle long file names.Rafael Espindola2013-06-201-15/+6
| | | | | | | | | | Original message: Don't include directory names in archives. This matches the behavior of both gnu and os x versions of ar. llvm-svn: 184423
* Revert "Don't include directory names in archives."Rafael Espindola2013-06-201-4/+13
| | | | | | | This reverts commit 184420. Investigating the bot failures. llvm-svn: 184421
* Don't include directory names in archives.Rafael Espindola2013-06-201-13/+4
| | | | | | This matches the behavior of both gnu and os x versions of ar. llvm-svn: 184420
* Remove remaining bits of the old LLVM specific symtab handling.Rafael Espindola2013-06-201-110/+2
| | | | llvm-svn: 184418
* Use the simpler sys::fs::exists.Rafael Espindola2013-06-201-2/+1
| | | | llvm-svn: 184413
* Remove unused function.Rafael Espindola2013-06-191-0/+1
| | | | llvm-svn: 184359
* Remove last use of PathV1.h from Archive.hRafael Espindola2013-06-191-1/+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-12/+11
| | | | llvm-svn: 184328
* Reduce sys::Path usage in llvm-ar.Rafael Espindola2013-06-191-4/+5
| | | | llvm-svn: 184315
* Move lib/Archive to tools/llvm-ar.Rafael Espindola2013-06-171-0/+429
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