[libunwind] [PAC][libunwind] Pass ptrauth-qualified values as const references (PR #173765)
Daniil Kovalev via cfe-commits
cfe-commits at lists.llvm.org
Tue Dec 30 02:49:56 PST 2025
================
@@ -202,10 +202,12 @@ class _LIBUNWIND_HIDDEN LocalAddressSpace {
pint_t getEncodedP(pint_t &addr, pint_t end, uint8_t encoding,
pint_t datarelBase = 0, pint_t *resultAddr = nullptr);
- bool findFunctionName(pint_t addr, char *buf, size_t bufLen,
+ template <typename T>
----------------
kovdan01 wrote:
@atrosinenko Thanks for suggestions! I decided to pass the registers struct type as a template parameter and use a newly defined `R::link_reg_arg_t` type alias which is basically `const R::link_reg_t&`. I've also added comments near all the function declarations using this and near this type alias itself.
https://github.com/llvm/llvm-project/pull/173765
More information about the cfe-commits
mailing list