]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
gas: sframe: const ptrs for args and local vars where applicable
authorIndu Bhagat <indu.bhagat@oracle.com>
Fri, 15 Aug 2025 17:28:59 +0000 (10:28 -0700)
committerIndu Bhagat <indu.bhagat@oracle.com>
Fri, 15 Aug 2025 17:29:38 +0000 (10:29 -0700)
commit7dcdd8cae43ce8768f605c63044cde6755336436
tree0c140a5a5f01b67351b2ab654131a7bb6d134705
parent09e56f0515c3f911eaf322f4ec4c07f46e5f53da
gas: sframe: const ptrs for args and local vars where applicable

Use const pointers for function arguments and local vars where
applicable.  'cfi_insn' contains the DWARF CFI instruction data which,
for the purpose of SFrame generation, is read-only.  Similarly, some
getter APIs and output related APIs now document their argument as
read-only.

While at it, also remove the ATTRIBUTE_UNUSED from argument xlate_ctx in
sframe_xlate_do_register () because the argument is indeed conditionally
used.
gas/gen-sframe.c