diff options
author | dim <dim@FreeBSD.org> | 2012-05-29 21:59:09 +0000 |
---|---|---|
committer | dim <dim@FreeBSD.org> | 2012-05-29 21:59:09 +0000 |
commit | f040760302ef6a1b1c14ae3e951e22abe443e08f (patch) | |
tree | 12014da887ddbaddee1e78c4b43cc23a2f9afedc /contrib/llvm/include/llvm/Support | |
parent | 3d7265cd8102879c148defab187a106d71ed3b6d (diff) | |
download | FreeBSD-src-f040760302ef6a1b1c14ae3e951e22abe443e08f.zip FreeBSD-src-f040760302ef6a1b1c14ae3e951e22abe443e08f.tar.gz |
Pull in r156591 from upstream llvm trunk:
Allow unique_file to take a mode for file permissions, but default
to user only read/write.
and r156592 from upstream clang trunk:
For final output files create them with mode 0664 to match other
compilers and expected defaults.
This should fix clang creating files with mode 0600.
Reported by: James <james@hicag.org>
MFC after: 3 days
Diffstat (limited to 'contrib/llvm/include/llvm/Support')
-rw-r--r-- | contrib/llvm/include/llvm/Support/FileSystem.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/llvm/include/llvm/Support/FileSystem.h b/contrib/llvm/include/llvm/Support/FileSystem.h index e6f9926..a7327b8 100644 --- a/contrib/llvm/include/llvm/Support/FileSystem.h +++ b/contrib/llvm/include/llvm/Support/FileSystem.h @@ -422,8 +422,8 @@ error_code status_known(const Twine &path, bool &result); /// @results errc::success if result_{fd,path} have been successfully set, /// otherwise a platform specific error_code. error_code unique_file(const Twine &model, int &result_fd, - SmallVectorImpl<char> &result_path, - bool makeAbsolute = true); + SmallVectorImpl<char> &result_path, + bool makeAbsolute = true, unsigned mode = 0600); /// @brief Canonicalize path. /// |