[lld] [llvm] [lld][AArch64][Build Attributes] Add support for AArch64 Build Attributes (PR #142637)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 4 06:15:36 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/Arch/AArch64.cpp lld/ELF/Config.h lld/ELF/Driver.cpp lld/ELF/InputFiles.cpp lld/ELF/InputFiles.h lld/ELF/SyntheticSections.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 97a18b6f0..cac96b5b1 100644
--- a/lld/ELF/InputFiles.cpp
+++ b/lld/ELF/InputFiles.cpp
@@ -566,8 +566,9 @@ handleAArch64BAAndGnuProperties(ObjFile<ELFT> *file, Ctx &ctx, bool hasGP,
if (baInfo.Pauth.TagPlatform || baInfo.Pauth.TagSchema) {
// According to the BuildAttributes specification Build Attributes
// default to a value of 0 when not present. A (TagPlatform, TagSchema) of
- // (0, 0) maps to 'no PAuth property present'. A (TagPlatform, TagSchema) of
- // (0, 1) maps to an explicit PAuth property of platform = 0, version = 0 ('Invalid').
+ // (0, 0) maps to 'no PAuth property present'. A (TagPlatform, TagSchema)
+ // of (0, 1) maps to an explicit PAuth property of platform = 0, version =
+ // 0 ('Invalid').
if (baInfo.Pauth.TagPlatform == 0 && baInfo.Pauth.TagSchema == 1) {
file->aarch64PauthAbiCoreInfo = {0, 0};
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/142637
More information about the llvm-commits
mailing list