Skip to content

Commit

Permalink
Support: Remove F_{None,Text,Append} compatibility synonyms, NFC
Browse files Browse the repository at this point in the history
Remove the compatibility spellings of `OF_{None,Text,Append}` that
were left behind by 1f67a3c.

No functionality change here, just an API cleanup.

Differential Revision: https://reviews.llvm.org/D101506
  • Loading branch information
dexonsmith committed Jun 15, 2021
1 parent 3bc899b commit 3302af9
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions llvm/include/llvm/Support/FileSystem.h
Original file line number Diff line number Diff line change
Expand Up @@ -755,12 +755,10 @@ enum FileAccess : unsigned {

enum OpenFlags : unsigned {
OF_None = 0,
F_None = 0, // For compatibility

/// The file should be opened in text mode on platforms like z/OS that make
/// this distinction.
OF_Text = 1,
F_Text = 1, // For compatibility

/// The file should use a carriage linefeed '\r\n'. This flag should only be
/// used with OF_Text. Only makes a difference on Windows.
Expand All @@ -773,7 +771,6 @@ enum OpenFlags : unsigned {

/// The file should be opened in append mode.
OF_Append = 4,
F_Append = 4, // For compatibility

/// Delete the file on close. Only makes a difference on windows.
OF_Delete = 8,
Expand Down

0 comments on commit 3302af9

Please sign in to comment.