[llvm] [BOLT][DWARF][NFC] Refactor address writers (PR #98094)

via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 9 15:44:28 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 d3cb277ea35d2cf25cdcc41b894959332477861c 9262e7a28afcdc99115bd223fd5f60b06a7e8339 -- bolt/include/bolt/Core/DebugData.h bolt/include/bolt/Rewrite/DWARFRewriter.h bolt/lib/Core/DebugData.cpp bolt/lib/Rewrite/DWARFRewriter.cpp
``````````

</details>

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

``````````diff
diff --git a/bolt/lib/Core/DebugData.cpp b/bolt/lib/Core/DebugData.cpp
index 5a11689004..314faacb1e 100644
--- a/bolt/lib/Core/DebugData.cpp
+++ b/bolt/lib/Core/DebugData.cpp
@@ -490,7 +490,8 @@ void DebugAddrWriterDwarf5::updateAddrBase(DIEBuilder &DIEBlder, DWARFUnit &CU,
 
 DenseMap<uint64_t, uint64_t> DebugAddrWriter::UnmodifiedAddressOffsets;
 
-std::optional<uint64_t> DebugAddrWriterDwarf5::finalize(const size_t BufferSize) {
+std::optional<uint64_t>
+DebugAddrWriterDwarf5::finalize(const size_t BufferSize) {
   // Need to layout all sections within .debug_addr
   // Within each section sort Address by index.
   const endianness Endian = BC->DwCtx->isLittleEndian()

``````````

</details>


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


More information about the llvm-commits mailing list