[llvm] 3302af9 - Support: Remove F_{None,Text,Append} compatibility synonyms, NFC

Duncan P. N. Exon Smith via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 15 12:04:44 PDT 2021


Author: Duncan P. N. Exon Smith
Date: 2021-06-15T12:04:09-07:00
New Revision: 3302af9d4c39642bebe64dd60a3aa162fefc44b2

URL: https://github.com/llvm/llvm-project/commit/3302af9d4c39642bebe64dd60a3aa162fefc44b2
DIFF: https://github.com/llvm/llvm-project/commit/3302af9d4c39642bebe64dd60a3aa162fefc44b2.diff

LOG: Support: Remove F_{None,Text,Append} compatibility synonyms, NFC

Remove the compatibility spellings of `OF_{None,Text,Append}` that
were left behind by 1f67a3cba9b09636c56e2109d8a35ae96dc15782.

No functionality change here, just an API cleanup.

Differential Revision: https://reviews.llvm.org/D101506

Added: 
    

Modified: 
    llvm/include/llvm/Support/FileSystem.h

Removed: 
    


################################################################################
diff  --git a/llvm/include/llvm/Support/FileSystem.h b/llvm/include/llvm/Support/FileSystem.h
index c7ab0671082d..38779ef4a3af 100644
--- a/llvm/include/llvm/Support/FileSystem.h
+++ b/llvm/include/llvm/Support/FileSystem.h
@@ -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 
diff erence on Windows.
@@ -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 
diff erence on windows.
   OF_Delete = 8,


        


More information about the llvm-commits mailing list