[llvm] [PowerPC][AIX] Emit PowerPC version for XCOFF. (PR #95510)
via llvm-commits
llvm-commits at lists.llvm.org
Fri Jun 14 00:13:35 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 f2d215f572affc9ad73da07763ce1831de7f2d4d 5a9d0e3832d8fc65689e8971a3bdef22b06a9dac -- llvm/include/llvm/BinaryFormat/XCOFF.h llvm/include/llvm/MC/MCAssembler.h llvm/include/llvm/MC/MCObjectStreamer.h llvm/include/llvm/MC/MCStreamer.h llvm/lib/BinaryFormat/XCOFF.cpp llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp llvm/lib/MC/MCAsmStreamer.cpp llvm/lib/MC/MCObjectStreamer.cpp llvm/lib/MC/MCStreamer.cpp llvm/lib/MC/XCOFFObjectWriter.cpp llvm/tools/llvm-readobj/XCOFFDumper.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/tools/llvm-readobj/XCOFFDumper.cpp b/llvm/tools/llvm-readobj/XCOFFDumper.cpp
index 9bbeaaeab5..6685645450 100644
--- a/llvm/tools/llvm-readobj/XCOFFDumper.cpp
+++ b/llvm/tools/llvm-readobj/XCOFFDumper.cpp
@@ -723,20 +723,10 @@ const EnumEntry<XCOFF::CFileLangId> CFileLangIdClass[] = {
const EnumEntry<XCOFF::CFileCpuId> CFileCpuIdClass[] = {
#define ECase(X) \
{ #X, XCOFF::X }
- ECase(TCPU_INVALID),
- ECase(TCPU_PPC),
- ECase(TCPU_PPC64),
- ECase(TCPU_COM),
- ECase(TCPU_PWR),
- ECase(TCPU_970),
- ECase(TCPU_PWR5),
- ECase(TCPU_PWR6),
- ECase(TCPU_PWR5X),
- ECase(TCPU_PWR6E),
- ECase(TCPU_PWR7),
- ECase(TCPU_PWR8),
- ECase(TCPU_PWR9),
- ECase(TCPU_PWR10)
+ ECase(TCPU_INVALID), ECase(TCPU_PPC), ECase(TCPU_PPC64), ECase(TCPU_COM),
+ ECase(TCPU_PWR), ECase(TCPU_970), ECase(TCPU_PWR5), ECase(TCPU_PWR6),
+ ECase(TCPU_PWR5X), ECase(TCPU_PWR6E), ECase(TCPU_PWR7), ECase(TCPU_PWR8),
+ ECase(TCPU_PWR9), ECase(TCPU_PWR10)
#undef ECase
};
``````````
</details>
https://github.com/llvm/llvm-project/pull/95510
More information about the llvm-commits
mailing list