[llvm] [obj2yaml] Add ability to dump GOFF header records (PR #90871)
via llvm-commits
llvm-commits at lists.llvm.org
Thu May 2 09:12:53 PDT 2024
github-actions[bot] wrote:
<!--LLVM CODE FORMAT COMMENT: {clang-format}-->
:warning: C/C++ code formatter, clang-format found issues in your code. :warning:
<details>
<summary>
You can test this locally with the following command:
</summary>
``````````bash
git-clang-format --diff 82f72c1aa8ef36b521a617a291c9f732edca9d12 033230f756215ac99df28d82dca7dd351b08157f -- llvm/tools/obj2yaml/goff2yaml.cpp llvm/include/llvm/Object/GOFFObjectFile.h llvm/include/llvm/ObjectYAML/GOFFYAML.h llvm/lib/Object/GOFFObjectFile.cpp llvm/lib/Object/ObjectFile.cpp llvm/lib/ObjectYAML/GOFFEmitter.cpp llvm/tools/obj2yaml/obj2yaml.cpp llvm/tools/obj2yaml/obj2yaml.h
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/tools/obj2yaml/goff2yaml.cpp b/llvm/tools/obj2yaml/goff2yaml.cpp
index 35bfe993c1..89745008d0 100644
--- a/llvm/tools/obj2yaml/goff2yaml.cpp
+++ b/llvm/tools/obj2yaml/goff2yaml.cpp
@@ -55,8 +55,7 @@ Error GOFFDumper::dumpHeader(ArrayRef<uint8_t> Records) {
YAMLObj.Header.TargetOperatingSystem = Data.getU32(C);
Data.skip(C, 2);
YAMLObj.Header.CCSID = Data.getU16(C);
- YAMLObj.Header.CharacterSetName =
- getFixedLengthEBCDICString(Data, C, 16);
+ YAMLObj.Header.CharacterSetName = getFixedLengthEBCDICString(Data, C, 16);
YAMLObj.Header.LanguageProductIdentifier =
getFixedLengthEBCDICString(Data, C, 16);
YAMLObj.Header.ArchitectureLevel = Data.getU32(C);
``````````
</details>
https://github.com/llvm/llvm-project/pull/90871
More information about the llvm-commits
mailing list