diff --git a/clang/lib/Tooling/DumpTool/ASTSrcLocProcessor.cpp b/clang/lib/Tooling/DumpTool/ASTSrcLocProcessor.cpp --- a/clang/lib/Tooling/DumpTool/ASTSrcLocProcessor.cpp +++ b/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; diff --git a/clang/lib/Tooling/DumpTool/ClangSrcLocDump.cpp b/clang/lib/Tooling/DumpTool/ClangSrcLocDump.cpp --- a/clang/lib/Tooling/DumpTool/ClangSrcLocDump.cpp +++ b/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())); diff --git a/libclc/utils/prepare-builtins.cpp b/libclc/utils/prepare-builtins.cpp --- a/libclc/utils/prepare-builtins.cpp +++ b/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'; diff --git a/lld/ELF/Driver.cpp b/lld/ELF/Driver.cpp --- a/lld/ELF/Driver.cpp +++ b/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; diff --git a/llvm/lib/Analysis/CFGPrinter.cpp b/llvm/lib/Analysis/CFGPrinter.cpp --- a/llvm/lib/Analysis/CFGPrinter.cpp +++ b/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); diff --git a/llvm/lib/Analysis/CallPrinter.cpp b/llvm/lib/Analysis/CallPrinter.cpp --- a/llvm/lib/Analysis/CallPrinter.cpp +++ b/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); diff --git a/llvm/lib/Analysis/DDGPrinter.cpp b/llvm/lib/Analysis/DDGPrinter.cpp --- a/llvm/lib/Analysis/DDGPrinter.cpp +++ b/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, diff --git a/llvm/tools/llvm-ml/llvm-ml.cpp b/llvm/tools/llvm-ml/llvm-ml.cpp --- a/llvm/tools/llvm-ml/llvm-ml.cpp +++ b/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; diff --git a/mlir/lib/Support/FileUtilities.cpp b/mlir/lib/Support/FileUtilities.cpp --- a/mlir/lib/Support/FileUtilities.cpp +++ b/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() +