aboutsummaryrefslogtreecommitdiff
path: root/bfd/bfd-in2.h
diff options
context:
space:
mode:
authorIndu Bhagat <indu.bhagat@oracle.com>2024-08-06 09:46:06 -0700
committerIndu Bhagat <indu.bhagat@oracle.com>2024-08-06 09:46:06 -0700
commitbb07e97d25b33d8cdcce5238bc0e292308bf570d (patch)
treefd02efb1566fdd960de23f85198dd96ba024d497 /bfd/bfd-in2.h
parent87e720ad359ece678b37b036a61e0adcc60304f4 (diff)
downloadgdb-bb07e97d25b33d8cdcce5238bc0e292308bf570d.zip
gdb-bb07e97d25b33d8cdcce5238bc0e292308bf570d.tar.gz
gdb-bb07e97d25b33d8cdcce5238bc0e292308bf570d.tar.bz2
gas: scfi: replace verbose expressions with local vars
Replace the scattered and repeated uses of verbose expressions with variables. E.g., ginsn_get_src_reg (src1) -> src1_reg ginsn_get_src_type (src1) -> src1_type etc. This hopefully makes the logic bit more maintainable. While at it, include minor adjustments to make few checks in gen_scfi_ops () more precise: - When getting imm value from src operand, ensure the src type is GINSN_SRC_IMM, - When getting reg from src operand, ensure the src type is checked too (GINSN_SRC_REG or GINSN_SRC_INDIRECT as appropriate). On the other hand, the changes in verify_heuristic_traceable_reg_fp () and verify_heuristic_traceable_stack_manipulation () are purely mechanical. gas/ * scfi.c (verify_heuristic_traceable_reg_fp): Add new local vars and reuse them. (verify_heuristic_traceable_stack_manipulation): Likewise. (gen_scfi_ops): Likewise. Additionally, make some conditionals more precise.
Diffstat (limited to 'bfd/bfd-in2.h')
0 files changed, 0 insertions, 0 deletions