[PATCH] D99285: [SystemZ][z/OS] csv files should be text files

Abhina Sree via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Mar 24 11:15:08 PDT 2021


abhina.sreeskantharajan created this revision.
abhina.sreeskantharajan requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.

This patch sets the OF_Text flag correctly for the csv file.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D99285

Files:
  clang/lib/Driver/Driver.cpp


Index: clang/lib/Driver/Driver.cpp
===================================================================
--- clang/lib/Driver/Driver.cpp
+++ clang/lib/Driver/Driver.cpp
@@ -4081,7 +4081,8 @@
         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();


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D99285.333059.patch
Type: text/x-patch
Size: 551 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20210324/992ed32e/attachment.bin>


More information about the cfe-commits mailing list