diff options
author | Tsukasa OI <research_trasio@irq.a4lg.com> | 2022-08-27 13:08:03 +0000 |
---|---|---|
committer | Tsukasa OI <research_trasio@irq.a4lg.com> | 2022-10-14 05:21:41 +0000 |
commit | 637d7c14299eea2fbffb0e133ffe5e1883fbd43b (patch) | |
tree | 4301af0c702c5d45ea35e7dd01c8b33c11107a2e /opcodes | |
parent | 3009ffe06c8ede5fbb7c9d37dfc731ce2c8fdf45 (diff) | |
download | gdb-637d7c14299eea2fbffb0e133ffe5e1883fbd43b.zip gdb-637d7c14299eea2fbffb0e133ffe5e1883fbd43b.tar.gz gdb-637d7c14299eea2fbffb0e133ffe5e1883fbd43b.tar.bz2 |
opcodes/riscv-dis.c: Remove last_map_state
Before changing the core disassembler, we take care of minor code clarity
issues and improve readability.
This commit removes unused variable last_map_state (set by the
print_insn_riscv function but not read anywhere else).
opcodes/ChangeLog:
* riscv-dis.c (last_map_state): Remove.
(print_insn_riscv): Remove setting last_map_state.
Diffstat (limited to 'opcodes')
-rw-r--r-- | opcodes/riscv-dis.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/opcodes/riscv-dis.c b/opcodes/riscv-dis.c index 27e1978..daeb1b5 100644 --- a/opcodes/riscv-dis.c +++ b/opcodes/riscv-dis.c @@ -64,7 +64,6 @@ struct riscv_private_data /* Used for mapping symbols. */ static int last_map_symbol = -1; static bfd_vma last_stop_offset = 0; -enum riscv_seg_mstate last_map_state; /* Register names as used by the disassembler. */ static const char * const *riscv_gpr_names; @@ -1041,8 +1040,6 @@ print_insn_riscv (bfd_vma memaddr, struct disassemble_info *info) set_default_riscv_dis_options (); mstate = riscv_search_mapping_symbol (memaddr, info); - /* Save the last mapping state. */ - last_map_state = mstate; /* Set the size to dump. */ if (mstate == MAP_DATA |