[llvm] 6e99771 - [SystemZ][z/OS] Open YAML text files as text
Abhina Sreeskantharajan via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 25 05:07:25 PDT 2022
Author: Abhina Sreeskantharajan
Date: 2022-07-25T08:07:20-04:00
New Revision: 6e99771a31572399e3b6ccf3f6a98d6bf07e6b2f
URL: https://github.com/llvm/llvm-project/commit/6e99771a31572399e3b6ccf3f6a98d6bf07e6b2f
DIFF: https://github.com/llvm/llvm-project/commit/6e99771a31572399e3b6ccf3f6a98d6bf07e6b2f.diff
LOG: [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
Added:
Modified:
llvm/tools/obj2yaml/obj2yaml.cpp
Removed:
################################################################################
diff --git a/llvm/tools/obj2yaml/obj2yaml.cpp b/llvm/tools/obj2yaml/obj2yaml.cpp
index f1dbd5905f232..63c8cc55ee2d4 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<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';
More information about the llvm-commits
mailing list