[lld] [lld][ELF] Implement merged .debug_names section (PR #88092)

via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 9 13:27:52 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 9797a7ea6bf84b48f267c781be209951d62bc6c9 4ad3c210a2a2b31ff699f41ad980c3d79442d192 -- lld/ELF/Config.h lld/ELF/DWARF.cpp lld/ELF/DWARF.h lld/ELF/Driver.cpp lld/ELF/SyntheticSections.cpp lld/ELF/SyntheticSections.h lld/ELF/Writer.cpp
``````````

</details>

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

``````````diff
diff --git a/lld/ELF/SyntheticSections.cpp b/lld/ELF/SyntheticSections.cpp
index 1e6981392e..5e5b166cf8 100644
--- a/lld/ELF/SyntheticSections.cpp
+++ b/lld/ELF/SyntheticSections.cpp
@@ -3131,8 +3131,9 @@ std::pair<uint32_t, uint32_t> DebugNamesBaseSection::computeEntryPool(
           auto [it, inserted] = maps[shardId].try_emplace(
               CachedHashStringRef(nte.name), std::move(nte));
           if (!inserted)
-            it->second.indexEntries.append(std::make_move_iterator(nte.indexEntries.begin()),
-                                   std::make_move_iterator(nte.indexEntries.end()));
+            it->second.indexEntries.append(
+                std::make_move_iterator(nte.indexEntries.begin()),
+                std::make_move_iterator(nte.indexEntries.end()));
         }
       }
     }

``````````

</details>


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


More information about the llvm-commits mailing list