summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support/Unix/Path.inc
diff options
context:
space:
mode:
authorFangrui Song <maskray@google.com>2019-08-05 05:43:48 +0000
committerFangrui Song <maskray@google.com>2019-08-05 05:43:48 +0000
commitd9b948b6eb7362f36264b71795dab179906e36be (patch)
tree35f79bbd28bc13b6b4b5e07ffece5d0388964b47 /llvm/lib/Support/Unix/Path.inc
parent1e4f2792faf1c14a6cfdbac3c6101b5faec5fbac (diff)
downloadbcm5719-llvm-d9b948b6eb7362f36264b71795dab179906e36be.tar.gz
bcm5719-llvm-d9b948b6eb7362f36264b71795dab179906e36be.zip
Rename F_{None,Text,Append} to OF_{None,Text,Append}. NFC
F_{None,Text,Append} are kept for compatibility since r334221. llvm-svn: 367800
Diffstat (limited to 'llvm/lib/Support/Unix/Path.inc')
-rw-r--r--llvm/lib/Support/Unix/Path.inc6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Support/Unix/Path.inc b/llvm/lib/Support/Unix/Path.inc
index 5c2c061fb88..dfd9389d2c6 100644
--- a/llvm/lib/Support/Unix/Path.inc
+++ b/llvm/lib/Support/Unix/Path.inc
@@ -887,9 +887,9 @@ static int nativeOpenFlags(CreationDisposition Disp, OpenFlags Flags,
else if (Access == (FA_Read | FA_Write))
Result |= O_RDWR;
- // This is for compatibility with old code that assumed F_Append implied
+ // This is for compatibility with old code that assumed OF_Append implied
// would open an existing file. See Windows/Path.inc for a longer comment.
- if (Flags & F_Append)
+ if (Flags & OF_Append)
Disp = CD_OpenAlways;
if (Disp == CD_CreateNew) {
@@ -904,7 +904,7 @@ static int nativeOpenFlags(CreationDisposition Disp, OpenFlags Flags,
// Nothing special, just don't add O_CREAT and we get these semantics.
}
- if (Flags & F_Append)
+ if (Flags & OF_Append)
Result |= O_APPEND;
#ifdef O_CLOEXEC
OpenPOWER on IntegriCloud