aboutsummaryrefslogtreecommitdiff
path: root/opcodes/loongarch-dis.c
diff options
context:
space:
mode:
Diffstat (limited to 'opcodes/loongarch-dis.c')
-rw-r--r--opcodes/loongarch-dis.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/opcodes/loongarch-dis.c b/opcodes/loongarch-dis.c
index cc4a48c..2e59bf8 100644
--- a/opcodes/loongarch-dis.c
+++ b/opcodes/loongarch-dis.c
@@ -95,13 +95,18 @@ static int
parse_loongarch_dis_option (const char *option)
{
if (strcmp (option, "no-aliases") == 0)
- loongarch_dis_show_aliases = false;
+ {
+ loongarch_dis_show_aliases = false;
+ return 0;
+ }
if (strcmp (option, "numeric") == 0)
{
loongarch_r_disname = loongarch_r_normal_name;
loongarch_f_disname = loongarch_f_normal_name;
+ return 0;
}
+
return -1;
}