]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
gas: dw2gencfi: minor rejig for cfi_sections_set and all_cfi_sections
authorIndu Bhagat <indu.bhagat@oracle.com>
Mon, 15 Jan 2024 08:59:15 +0000 (00:59 -0800)
committerIndu Bhagat <indu.bhagat@oracle.com>
Mon, 15 Jan 2024 11:31:35 +0000 (03:31 -0800)
commitb0cd3f29e81829190c814aa80e4fee32caa8360b
treedcddd6d400f4d66bf84953e4e4ed61967d51392b
parentb750cfb78e334ccb1bf3c9e1f74282ac9af2d9ae
gas: dw2gencfi: minor rejig for cfi_sections_set and all_cfi_sections

cfi_sections_set is best set to true in cfi_dot_startproc ().  Setting
it to true again in other APIs (dot_cfi_endproc, dot_cfi_fde_data, and
cfi_finish) is unnecessary.  Also, move setting the global var
all_cfi_sections into cfi_set_sections ().

gas/
        * dw2gencfi.c (cfi_set_sections): Set cfi_sections_set and
cfi_sections here.
        (dot_cfi_startproc): Remove unnecessarily setting
cfi_set_sections to true.
        (dot_cfi_endproc): Likewise.
        (dot_cfi_fde_data): Likewise.
        (cfi_finish): Likewise.
gas/dw2gencfi.c