[clang] [llvm] [Clang][AArch64] Command-line options for A-profile's Sign Return Address Hardening (PR #176171)
Anatoly Trosinenko via cfe-commits
cfe-commits at lists.llvm.org
Tue Sep 8 12:06:50 PDT 2026
================
@@ -764,6 +771,13 @@ class LangOptions : public LangOptionsBase {
return getSignReturnAddressScope() == SignReturnAddressScopeKind::All;
}
+ /// Check if return address signing hardening is enabled and uses load from
+ /// the return address.
+ bool isSignReturnAddressHardenWithLoadReturnAddress() const {
----------------
atrosinenko wrote:
Restoring the "is hardening enabled?" getter that checks for `... != None` could possibly be more straightforward, see below.
https://github.com/llvm/llvm-project/pull/176171
More information about the cfe-commits
mailing list