================
@@ -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
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits