[lld] [lld][COFF] Support .pdata section on ARM64EC targets. (PR #72521)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Nov 16 06:42:19 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 181b2c1b4aae09b9d3bdd0c4f8fda705cccf1b5b 56d9f1b4e8880fc68f6c2631d5262844339d790c -- lld/COFF/Driver.cpp 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 3e0641eeab..e3687e27e6 100644
--- a/lld/COFF/Writer.cpp
+++ b/lld/COFF/Writer.cpp
@@ -1689,9 +1689,11 @@ template <typename PEHeaderTy> void Writer::writeHeader() {
dir[RESOURCE_TABLE].RelativeVirtualAddress = rsrcSec->getRVA();
dir[RESOURCE_TABLE].Size = rsrcSec->getVirtualSize();
}
- Chunk *firstPdataChunk = ctx.config.machine == ARM64EC ? firstHybridPdata : firstPdata;
+ Chunk *firstPdataChunk =
+ ctx.config.machine == ARM64EC ? firstHybridPdata : firstPdata;
if (firstPdataChunk) {
- Chunk *lastPdataChunk = ctx.config.machine == ARM64EC ? lastHybridPdata : lastPdata;
+ Chunk *lastPdataChunk =
+ ctx.config.machine == ARM64EC ? lastHybridPdata : lastPdata;
dir[EXCEPTION_TABLE].RelativeVirtualAddress = firstPdataChunk->getRVA();
dir[EXCEPTION_TABLE].Size = lastPdataChunk->getRVA() +
lastPdataChunk->getSize() -
``````````
</details>
https://github.com/llvm/llvm-project/pull/72521
More information about the llvm-commits
mailing list