[llvm] [LLVM][DWARF] Add support for monolithic types in .debug_names (PR #68131)

via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 5 11:08:06 PDT 2023


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 4f98fb2e937ab3c3afacd986cbad16e7d3bc960b ad45044a2f05b85fb6d9d21f24f7c52875d3acc7 -- llvm/include/llvm/CodeGen/AccelTable.h llvm/lib/CodeGen/AsmPrinter/AccelTable.cpp llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp llvm/lib/CodeGen/AsmPrinter/DwarfDebug.h llvm/lib/CodeGen/AsmPrinter/DwarfFile.cpp llvm/lib/CodeGen/AsmPrinter/DwarfFile.h llvm/lib/CodeGen/AsmPrinter/DwarfUnit.cpp llvm/lib/CodeGen/AsmPrinter/DwarfUnit.h llvm/lib/DWARFLinker/DWARFStreamer.cpp llvm/lib/DWARFLinkerParallel/DWARFEmitterImpl.cpp llvm/lib/DebugInfo/DWARF/DWARFAcceleratorTable.cpp
``````````

</details>

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

``````````diff
diff --git a/llvm/lib/DWARFLinker/DWARFStreamer.cpp b/llvm/lib/DWARFLinker/DWARFStreamer.cpp
index 5e0b976a169f..75e189775dfa 100644
--- a/llvm/lib/DWARFLinker/DWARFStreamer.cpp
+++ b/llvm/lib/DWARFLinker/DWARFStreamer.cpp
@@ -307,8 +307,8 @@ void DwarfStreamer::emitDebugNames(
   }
 
   Asm->OutStreamer->switchSection(MOFI->getDwarfDebugNamesSection());
-  dwarf::Form Form =
-      DIEInteger::BestForm(/*IsSigned*/ false, (uint64_t)UniqueIdToCuMap.size() - 1);
+  dwarf::Form Form = DIEInteger::BestForm(/*IsSigned*/ false,
+                                          (uint64_t)UniqueIdToCuMap.size() - 1);
   /// llvm-dwarfutil doesn't support type units + .debug_names right now anyway,
   /// so just keeping current behavior.
   emitDWARF5AccelTable(

``````````

</details>


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


More information about the llvm-commits mailing list