From ee59f5751903f943efb255df83c8227c9cc1e0f3 Mon Sep 17 00:00:00 2001 From: "Duncan P. N. Exon Smith" Date: Wed, 28 Apr 2021 18:18:35 -0700 Subject: [PATCH] Support: Stop using F_{None,Text,Append} compatibility synonyms, NFC Stop using the compatibility spellings of `OF_{None,Text,Append}` left behind by 1f67a3cba9b09636c56e2109d8a35ae96dc15782. A follow-up will remove them. Differential Revision: https://reviews.llvm.org/D101650 --- lib/Analysis/CFGPrinter.cpp | 2 +- lib/Analysis/CallPrinter.cpp | 2 +- lib/Analysis/DDGPrinter.cpp | 2 +- tools/llvm-ml/llvm-ml.cpp | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/Analysis/CFGPrinter.cpp b/lib/Analysis/CFGPrinter.cpp index 3373dfab011..b981925542c 100644 --- a/lib/Analysis/CFGPrinter.cpp +++ b/lib/Analysis/CFGPrinter.cpp @@ -63,7 +63,7 @@ static void writeCFGToDotFile(Function &F, BlockFrequencyInfo *BFI, 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/lib/Analysis/CallPrinter.cpp b/lib/Analysis/CallPrinter.cpp index bbbcbf8dd1c..829532a0fa1 100644 --- a/lib/Analysis/CallPrinter.cpp +++ b/lib/Analysis/CallPrinter.cpp @@ -274,7 +274,7 @@ bool CallGraphDOTPrinter::runOnModule(Module &M) { 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/lib/Analysis/DDGPrinter.cpp b/lib/Analysis/DDGPrinter.cpp index 51bd5480985..0d5a936723c 100644 --- a/lib/Analysis/DDGPrinter.cpp +++ b/lib/Analysis/DDGPrinter.cpp @@ -42,7 +42,7 @@ static void writeDDGToDotFile(DataDependenceGraph &G, bool DOnly) { 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/tools/llvm-ml/llvm-ml.cpp b/tools/llvm-ml/llvm-ml.cpp index 1292f40eaa3..1a63017a511 100644 --- a/tools/llvm-ml/llvm-ml.cpp +++ b/tools/llvm-ml/llvm-ml.cpp @@ -96,7 +96,7 @@ static Triple GetTriple(StringRef ProgName, opt::InputArgList &Args) { 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;