[clang] ea61708 - [SystemZ][z/OS] csv files should be text files
Abhina Sreeskantharajan via cfe-commits
cfe-commits at lists.llvm.org
Thu Mar 25 06:19:22 PDT 2021
Author: Abhina Sreeskantharajan
Date: 2021-03-25T09:19:15-04:00
New Revision: ea61708c6d07846e13590b14c4dac2b7d543fef9
URL: https://github.com/llvm/llvm-project/commit/ea61708c6d07846e13590b14c4dac2b7d543fef9
DIFF: https://github.com/llvm/llvm-project/commit/ea61708c6d07846e13590b14c4dac2b7d543fef9.diff
LOG: [SystemZ][z/OS] csv files should be text files
This patch sets the OF_Text flag correctly for the csv file.
Reviewed By: anirudhp
Differential Revision: https://reviews.llvm.org/D99285
Added:
Modified:
clang/lib/Driver/Driver.cpp
Removed:
################################################################################
diff --git a/clang/lib/Driver/Driver.cpp b/clang/lib/Driver/Driver.cpp
index e70263e6a295..0918ea455811 100644
--- a/clang/lib/Driver/Driver.cpp
+++ b/clang/lib/Driver/Driver.cpp
@@ -4081,7 +4081,8 @@ void Driver::BuildJobs(Compilation &C) const {
Out.flush();
std::error_code EC;
llvm::raw_fd_ostream OS(CCPrintStatReportFilename, EC,
- llvm::sys::fs::OF_Append);
+ llvm::sys::fs::OF_Append |
+ llvm::sys::fs::OF_Text);
if (EC)
return;
auto L = OS.lock();
More information about the cfe-commits
mailing list