llvm/tools/llvm-ar
Rafael Espindola 200c748a86 Add a createUniqueFile function and switch llvm's users of unique_file.
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).

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@185726 91177308-0d34-0410-b5e6-96231b3b80d8
2013-07-05 21:01:08 +00:00
..
Archive.cpp Don't treat bitcode files specially in llvm-ar. 2013-07-05 04:19:32 +00:00
Archive.h Don't treat bitcode files specially in llvm-ar. 2013-07-05 04:19:32 +00:00
ArchiveInternals.h Remove remaining bits of the old LLVM specific symtab handling. 2013-06-20 13:00:30 +00:00
ArchiveReader.cpp Don't treat bitcode files specially in llvm-ar. 2013-07-05 04:19:32 +00:00
ArchiveWriter.cpp Add a createUniqueFile function and switch llvm's users of unique_file. 2013-07-05 21:01:08 +00:00
CMakeLists.txt Move lib/Archive to tools/llvm-ar. 2013-06-17 15:47:20 +00:00
llvm-ar.cpp Don't create an archive if, for example, we are asked to print the index. 2013-07-05 13:03:07 +00:00
LLVMBuild.txt Move lib/Archive to tools/llvm-ar. 2013-06-17 15:47:20 +00:00
Makefile Move lib/Archive to tools/llvm-ar. 2013-06-17 15:47:20 +00:00