Index: clang/lib/Tooling/DumpTool/ASTSrcLocProcessor.cpp =================================================================== --- clang/lib/Tooling/DumpTool/ASTSrcLocProcessor.cpp +++ clang/lib/Tooling/DumpTool/ASTSrcLocProcessor.cpp @@ -122,7 +122,7 @@ } std::error_code EC; - llvm::raw_fd_ostream JsonOut(JsonPath, EC, llvm::sys::fs::F_Text); + llvm::raw_fd_ostream JsonOut(JsonPath, EC, llvm::sys::fs::OF_Text); if (EC) return; Index: clang/lib/Tooling/DumpTool/ClangSrcLocDump.cpp =================================================================== --- clang/lib/Tooling/DumpTool/ClangSrcLocDump.cpp +++ clang/lib/Tooling/DumpTool/ClangSrcLocDump.cpp @@ -71,7 +71,7 @@ if (SkipProcessing) { std::error_code EC; - llvm::raw_fd_ostream JsonOut(JsonOutputPath, EC, llvm::sys::fs::F_Text); + llvm::raw_fd_ostream JsonOut(JsonOutputPath, EC, llvm::sys::fs::OF_Text); if (EC) return 1; JsonOut << formatv("{0:2}", llvm::json::Value(llvm::json::Object())); Index: libclc/utils/prepare-builtins.cpp =================================================================== --- libclc/utils/prepare-builtins.cpp +++ libclc/utils/prepare-builtins.cpp @@ -95,10 +95,10 @@ std::error_code EC; #if HAVE_LLVM >= 0x0600 std::unique_ptr Out( - new ToolOutputFile(OutputFilename, EC, sys::fs::F_None)); + new ToolOutputFile(OutputFilename, EC, sys::fs::OF_None)); #else std::unique_ptr Out( - new tool_output_file(OutputFilename, EC, sys::fs::F_None)); + new tool_output_file(OutputFilename, EC, sys::fs::OF_None)); #endif if (EC) { errs() << EC.message() << '\n'; Index: lld/ELF/Driver.cpp =================================================================== --- lld/ELF/Driver.cpp +++ lld/ELF/Driver.cpp @@ -1690,7 +1690,7 @@ // easily. static void writeDependencyFile() { std::error_code ec; - raw_fd_ostream os(config->dependencyFile, ec, sys::fs::F_None); + raw_fd_ostream os(config->dependencyFile, ec, sys::fs::OF_None); if (ec) { error("cannot open " + config->dependencyFile + ": " + ec.message()); return; Index: llvm/include/llvm/Support/FileSystem.h =================================================================== --- llvm/include/llvm/Support/FileSystem.h +++ llvm/include/llvm/Support/FileSystem.h @@ -755,12 +755,10 @@ 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. @@ -773,7 +771,6 @@ /// 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, Index: llvm/lib/Analysis/CFGPrinter.cpp =================================================================== --- llvm/lib/Analysis/CFGPrinter.cpp +++ llvm/lib/Analysis/CFGPrinter.cpp @@ -63,7 +63,7 @@ errs() << "Writing '" << Filename << "'..."; std::error_code EC; - raw_fd_ostream File(Filename, EC, sys::fs::F_Text); + raw_fd_ostream File(Filename, EC, sys::fs::OF_Text); DOTFuncInfo CFGInfo(&F, BFI, BPI, MaxFreq); CFGInfo.setHeatColors(ShowHeatColors); Index: llvm/lib/Analysis/CallPrinter.cpp =================================================================== --- llvm/lib/Analysis/CallPrinter.cpp +++ llvm/lib/Analysis/CallPrinter.cpp @@ -274,7 +274,7 @@ errs() << "Writing '" << Filename << "'..."; std::error_code EC; - raw_fd_ostream File(Filename, EC, sys::fs::F_Text); + raw_fd_ostream File(Filename, EC, sys::fs::OF_Text); CallGraph CG(M); CallGraphDOTInfo CFGInfo(&M, &CG, LookupBFI); Index: llvm/lib/Analysis/DDGPrinter.cpp =================================================================== --- llvm/lib/Analysis/DDGPrinter.cpp +++ llvm/lib/Analysis/DDGPrinter.cpp @@ -42,7 +42,7 @@ errs() << "Writing '" << Filename << "'..."; std::error_code EC; - raw_fd_ostream File(Filename, EC, sys::fs::F_Text); + raw_fd_ostream File(Filename, EC, sys::fs::OF_Text); if (!EC) // We only provide the constant verson of the DOTGraphTrait specialization, Index: llvm/tools/llvm-ml/llvm-ml.cpp =================================================================== --- llvm/tools/llvm-ml/llvm-ml.cpp +++ llvm/tools/llvm-ml/llvm-ml.cpp @@ -96,7 +96,7 @@ static std::unique_ptr GetOutputStream(StringRef Path) { std::error_code EC; - auto Out = std::make_unique(Path, EC, sys::fs::F_None); + auto Out = std::make_unique(Path, EC, sys::fs::OF_None); if (EC) { WithColor::error() << EC.message() << '\n'; return nullptr; Index: mlir/lib/Support/FileUtilities.cpp =================================================================== --- mlir/lib/Support/FileUtilities.cpp +++ mlir/lib/Support/FileUtilities.cpp @@ -35,7 +35,7 @@ mlir::openOutputFile(StringRef outputFilename, std::string *errorMessage) { std::error_code error; auto result = std::make_unique(outputFilename, error, - llvm::sys::fs::F_None); + llvm::sys::fs::OF_None); if (error) { if (errorMessage) *errorMessage = "cannot open output file '" + outputFilename.str() +