[PATCH] D130354: [SystemZ][z/OS] Open text files as text
Abhina Sree via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Jul 22 06:21:48 PDT 2022
abhina.sreeskantharajan created this revision.
Herald added a project: All.
abhina.sreeskantharajan requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
This patch sets the YAML file as text.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D130354
Files:
llvm/tools/obj2yaml/obj2yaml.cpp
Index: llvm/tools/obj2yaml/obj2yaml.cpp
===================================================================
--- llvm/tools/obj2yaml/obj2yaml.cpp
+++ llvm/tools/obj2yaml/obj2yaml.cpp
@@ -108,7 +108,7 @@
std::error_code EC;
std::unique_ptr<ToolOutputFile> Out(
- new ToolOutputFile(OutputFilename, EC, sys::fs::OF_None));
+ new ToolOutputFile(OutputFilename, EC, sys::fs::OF_Text));
if (EC) {
WithColor::error(errs(), "obj2yaml")
<< "failed to open '" + OutputFilename + "': " + EC.message() << '\n';
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D130354.446808.patch
Type: text/x-patch
Size: 534 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220722/50a9a931/attachment.bin>
More information about the llvm-commits
mailing list