summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support/Windows/PathV2.inc
diff options
context:
space:
mode:
authorEric Christopher <echristo@apple.com>2012-05-11 00:07:44 +0000
committerEric Christopher <echristo@apple.com>2012-05-11 00:07:44 +0000
commitb6148ed72cfdc6a2acf584631472cd1257ed1bb6 (patch)
treebf5a691e28ef2bd97a322855427edc8bc2ac2e83 /llvm/lib/Support/Windows/PathV2.inc
parent8244b1dc7e0ed6dcc5fe6192408e48985cbffe7c (diff)
downloadbcm5719-llvm-b6148ed72cfdc6a2acf584631472cd1257ed1bb6.tar.gz
bcm5719-llvm-b6148ed72cfdc6a2acf584631472cd1257ed1bb6.zip
Allow unique_file to take a mode for file permissions, but default
to user only read/write. Part of rdar://11325849 llvm-svn: 156591
Diffstat (limited to 'llvm/lib/Support/Windows/PathV2.inc')
-rw-r--r--llvm/lib/Support/Windows/PathV2.inc6
1 files changed, 4 insertions, 2 deletions
diff --git a/llvm/lib/Support/Windows/PathV2.inc b/llvm/lib/Support/Windows/PathV2.inc
index 66b8d84f852..4868b184b8f 100644
--- a/llvm/lib/Support/Windows/PathV2.inc
+++ b/llvm/lib/Support/Windows/PathV2.inc
@@ -497,9 +497,11 @@ handle_status_error:
return error_code::success();
}
+// FIXME: mode should be used here and default to user r/w only,
+// it currently comes in as a UNIX mode.
error_code unique_file(const Twine &model, int &result_fd,
- SmallVectorImpl<char> &result_path,
- bool makeAbsolute) {
+ SmallVectorImpl<char> &result_path,
+ bool makeAbsolute, unsigned mode) {
// Use result_path as temp storage.
result_path.set_size(0);
StringRef m = model.toStringRef(result_path);
OpenPOWER on IntegriCloud