aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Beulich <jbeulich@suse.com>2022-10-04 09:45:31 +0200
committerJan Beulich <jbeulich@suse.com>2022-10-04 09:45:31 +0200
commit8c07e983a28cc05edb87882a33c072c0cdfdedc3 (patch)
tree3c701cb9216d0944db1c0a841936c9d7082ef26a
parent3b25fc4884a93fc61d3de0fc1b46109f26719556 (diff)
downloadgdb-8c07e983a28cc05edb87882a33c072c0cdfdedc3.zip
gdb-8c07e983a28cc05edb87882a33c072c0cdfdedc3.tar.gz
gdb-8c07e983a28cc05edb87882a33c072c0cdfdedc3.tar.bz2
RISC-V/gas: don't open-code insn_length()
Use the helper when it can be used.
-rw-r--r--gas/config/tc-riscv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gas/config/tc-riscv.c b/gas/config/tc-riscv.c
index fae314c..a47d36c 100644
--- a/gas/config/tc-riscv.c
+++ b/gas/config/tc-riscv.c
@@ -1445,7 +1445,7 @@ append_insn (struct riscv_cl_insn *ip, expressionS *address_expr,
|| reloc_type == BFD_RELOC_RISCV_JMP)
{
int j = reloc_type == BFD_RELOC_RISCV_JMP;
- int best_case = riscv_insn_length (ip->insn_opcode);
+ int best_case = insn_length (ip);
unsigned worst_case = relaxed_branch_length (NULL, NULL, 0);
if (now_seg == absolute_section)