[lld] [llvm] [lld][AArch64][Build Attributes] Add support for AArch64 Build Attributes (PR #147970)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 10 07:24:46 PDT 2025
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 HEAD~1 HEAD --extensions h,cpp -- lld/ELF/InputFiles.cpp llvm/include/llvm/Support/AArch64AttributeParser.h llvm/lib/Support/AArch64AttributeParser.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/lld/ELF/InputFiles.cpp b/lld/ELF/InputFiles.cpp
index eb6974657..32fe36478 100644
--- a/lld/ELF/InputFiles.cpp
+++ b/lld/ELF/InputFiles.cpp
@@ -547,13 +547,14 @@ handleAArch64BAAndGnuProperties(ObjFile<ELFT> *file, Ctx &ctx,
if (file->aarch64PauthAbiCoreInfo) {
if (baInfo.Pauth.TagPlatform != file->aarch64PauthAbiCoreInfo->platform ||
baInfo.Pauth.TagSchema != file->aarch64PauthAbiCoreInfo->version)
- Err(ctx)
- << file
- << " GNU properties and build attributes have conflicting AArch64 PAuth data";
+ Err(ctx) << file
+ << " GNU properties and build attributes have conflicting "
+ "AArch64 PAuth data";
}
if (baInfo.AndFeatures != file->andFeatures)
Err(ctx) << file
- << " GNU properties and build attributes have conflicting AArch64 PAuth data";
+ << " GNU properties and build attributes have conflicting "
+ "AArch64 PAuth data";
} else {
// When BuildAttributes are missing, PauthABI value defaults to (TagPlatform
// = 0, TagSchema = 0). GNU properties do not write PAuthAbiCoreInfo if GNU
``````````
</details>
https://github.com/llvm/llvm-project/pull/147970
More information about the llvm-commits
mailing list