[lld] [lld][GNU Properties] Refactor storage of PAuth ABI core info (PR #141920)
Peter Smith via llvm-commits
llvm-commits at lists.llvm.org
Thu May 29 06:49:22 PDT 2025
================
@@ -695,7 +701,7 @@ struct Ctx : CommonLinkerContext {
llvm::raw_fd_ostream openAuxiliaryFile(llvm::StringRef, std::error_code &);
- ArrayRef<uint8_t> aarch64PauthAbiCoreInfo;
+ std::optional<AArch64PauthAbiCoreInfo> aarch64PauthAbiCoreInfo;
----------------
smithp35 wrote:
In theory yes, with nullptr as the empty state, the disadvantage is that it would require dynamic memory allocation for AArch64PauthABICoreInfo when we see it, which seems heavyweight for two 64-bit values.
https://github.com/llvm/llvm-project/pull/141920
More information about the llvm-commits
mailing list