From bce112c9e9dbd108b06a01dea2f8f0c0948ba697 Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Tue, 28 Nov 2017 00:12:44 +0000 Subject: Add an F_Delete flag. For now this only changes the handle Access. llvm-svn: 319121 --- llvm/lib/Support/Windows/Path.inc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'llvm/lib/Support/Windows') 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, -- cgit v1.2.3