[clang] [llvm] [MC] Emit a jump table size section (PR #101962)

via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 5 04:28:18 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 832203545d4e2157ca29f99b18e3360ffa180183 14f3cb82f0d7e69261bd7e1317bd66392e9a2c2b --extensions h,cpp,c -- clang/lib/Driver/ToolChains/PS4CPU.cpp clang/test/Driver/ps4-ps5-toolchain.c llvm/include/llvm/BinaryFormat/ELF.h llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp llvm/lib/MC/MCParser/ELFAsmParser.cpp llvm/lib/MC/MCSectionELF.cpp llvm/lib/Object/ELF.cpp
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp b/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
index 05624d2728..50a89bc70a 100644
--- a/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
+++ b/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
@@ -2777,8 +2777,8 @@ void AsmPrinter::emitJumpTableInfo() {
     StringRef GroupName = F.hasComdat() ? F.getComdat()->getName() : "";
 
     MCSection *JumpTableSizesSection = OutContext.getELFSection(
-        ".debug_llvm_jump_table_sizes", ELF::SHT_LLVM_JT_SIZES, Flags, 0, GroupName,
-        F.hasComdat(), MCSection::NonUniqueID, LinkedToSym);
+        ".debug_llvm_jump_table_sizes", ELF::SHT_LLVM_JT_SIZES, Flags, 0,
+        GroupName, F.hasComdat(), MCSection::NonUniqueID, LinkedToSym);
 
     OutStreamer->switchSection(JumpTableSizesSection);
 

``````````

</details>


https://github.com/llvm/llvm-project/pull/101962


More information about the llvm-commits mailing list