Updated F_Text and F_Append

These enum cases were also updated to OF_Text and OF_Append.
This commit is contained in:
Evan Wilde
2021-06-23 14:29:52 -07:00
parent 0aafd09835
commit 8112cda531
6 changed files with 9 additions and 9 deletions

View File

@@ -251,7 +251,7 @@ public:
SmallString<256> Path(Dirname);
llvm::sys::path::append(Path, Filename);
std::error_code EC;
raw_fd_ostream Stream(Path, EC, fs::F_Append | fs::F_Text);
raw_fd_ostream Stream(Path, EC, fs::OF_Append | fs::OF_Text);
if (EC) {
llvm::errs() << "Error opening profile file '"
<< Path << "' for writing\n";
@@ -688,7 +688,7 @@ UnifiedStatsReporter::~UnifiedStatsReporter()
}
std::error_code EC;
raw_fd_ostream ostream(StatsFilename, EC, fs::F_Append | fs::F_Text);
raw_fd_ostream ostream(StatsFilename, EC, fs::OF_Append | fs::OF_Text);
if (EC) {
llvm::errs() << "Error opening -stats-output-dir file '"
<< StatsFilename << "' for writing\n";
@@ -726,7 +726,7 @@ UnifiedStatsReporter::flushTracesAndProfiles() {
if (FrontendStatsEvents && SourceMgr) {
std::error_code EC;
raw_fd_ostream tstream(TraceFilename, EC, fs::F_Append | fs::F_Text);
raw_fd_ostream tstream(TraceFilename, EC, fs::OF_Append | fs::OF_Text);
if (EC) {
llvm::errs() << "Error opening -trace-stats-events file '"
<< TraceFilename << "' for writing\n";