[lld] [lld][COFF][NFC] Store pdata range as ChunkRange. (PR #74024)

via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 30 17:58:46 PST 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 56bbf8135eb8b7d133d5d5fc7604d66f5011c57b 370a804b9fbe06b1d305751e35b16b67a2b41148 -- lld/COFF/Writer.cpp
``````````

</details>

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

``````````diff
diff --git a/lld/COFF/Writer.cpp b/lld/COFF/Writer.cpp
index 160e1c339c..1f17e8563d 100644
--- a/lld/COFF/Writer.cpp
+++ b/lld/COFF/Writer.cpp
@@ -1670,8 +1670,8 @@ template <typename PEHeaderTy> void Writer::writeHeader() {
   }
   if (pdata.first) {
     dir[EXCEPTION_TABLE].RelativeVirtualAddress = pdata.first->getRVA();
-    dir[EXCEPTION_TABLE].Size = pdata.last->getRVA() +
-                                pdata.last->getSize() - pdata.first->getRVA();
+    dir[EXCEPTION_TABLE].Size =
+        pdata.last->getRVA() + pdata.last->getSize() - pdata.first->getRVA();
   }
   if (relocSec->getVirtualSize()) {
     dir[BASE_RELOCATION_TABLE].RelativeVirtualAddress = relocSec->getRVA();

``````````

</details>


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


More information about the llvm-commits mailing list