From 6e99771a31572399e3b6ccf3f6a98d6bf07e6b2f Mon Sep 17 00:00:00 2001 From: Abhina Sreeskantharajan Date: Mon, 25 Jul 2022 08:06:16 -0400 Subject: [PATCH] [SystemZ][z/OS] Open YAML text files as text This patch sets the YAML file as text instead of binary. Reviewed By: MaskRay Differential Revision: https://reviews.llvm.org/D130354 --- llvm/tools/obj2yaml/obj2yaml.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/tools/obj2yaml/obj2yaml.cpp b/llvm/tools/obj2yaml/obj2yaml.cpp index f1dbd59..63c8cc5 100644 --- a/llvm/tools/obj2yaml/obj2yaml.cpp +++ b/llvm/tools/obj2yaml/obj2yaml.cpp @@ -108,7 +108,7 @@ int main(int argc, char *argv[]) { std::error_code EC; std::unique_ptr 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'; -- 2.7.4