[llvm] [DWARFYAML] Implement debug_names support (PR #79666)

via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 8 11:37:11 PST 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 380ac53dfa05792c6f9fd0a4aba542f8c7e5e17c 7e51003d5c8ea8dbe77ee5c5685a711ee320c74e -- llvm/include/llvm/ObjectYAML/DWARFEmitter.h llvm/include/llvm/ObjectYAML/DWARFYAML.h llvm/lib/ObjectYAML/DWARFEmitter.cpp llvm/lib/ObjectYAML/DWARFYAML.cpp llvm/unittests/DebugInfo/DWARF/DWARFAcceleratorTableTest.cpp
``````````

</details>

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

``````````diff
diff --git a/llvm/lib/ObjectYAML/DWARFEmitter.cpp b/llvm/lib/ObjectYAML/DWARFEmitter.cpp
index 7fe4b1ff48..39195bf63f 100644
--- a/llvm/lib/ObjectYAML/DWARFEmitter.cpp
+++ b/llvm/lib/ObjectYAML/DWARFEmitter.cpp
@@ -787,7 +787,7 @@ getNonZeroDataSizesFor(uint32_t AbbrevCode,
                              "did not find an Abbreviation for this code");
 
   SmallVector<uint8_t> DataSizes;
-  dwarf::FormParams Params{/*Version=*/ 5, /*AddrSize=*/ 4, dwarf::DWARF32};
+  dwarf::FormParams Params{/*Version=*/5, /*AddrSize=*/4, dwarf::DWARF32};
   for (auto [Idx, Form] : AbbrevIt->Indices) {
     std::optional<uint8_t> FormSize = dwarf::getFixedFormByteSize(Form, Params);
     if (!FormSize)

``````````

</details>


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


More information about the llvm-commits mailing list