summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support/Windows
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2017-11-28 00:12:44 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2017-11-28 00:12:44 +0000
commitbce112c9e9dbd108b06a01dea2f8f0c0948ba697 (patch)
tree02972f94a8c3d0eba8e05673a6b6ed932a618a2b /llvm/lib/Support/Windows
parentdbd4a7fecc20668ac2a53886a9e552cf0ec96ccc (diff)
downloadbcm5719-llvm-bce112c9e9dbd108b06a01dea2f8f0c0948ba697.tar.gz
bcm5719-llvm-bce112c9e9dbd108b06a01dea2f8f0c0948ba697.zip
Add an F_Delete flag.
For now this only changes the handle Access. llvm-svn: 319121
Diffstat (limited to 'llvm/lib/Support/Windows')
-rw-r--r--llvm/lib/Support/Windows/Path.inc2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/Support/Windows/Path.inc b/llvm/lib/Support/Windows/Path.inc
index dceaaa1542c..113f259fe56 100644
--- a/llvm/lib/Support/Windows/Path.inc
+++ b/llvm/lib/Support/Windows/Path.inc
@@ -1031,6 +1031,8 @@ std::error_code openFileForWrite(const Twine &Name, int &ResultFD,
DWORD Access = GENERIC_WRITE;
if (Flags & F_RW)
Access |= GENERIC_READ;
+ if (Flags & F_Delete)
+ Access |= DELETE;
HANDLE H =
::CreateFileW(PathUTF16.begin(), Access,
OpenPOWER on IntegriCloud