aboutsummaryrefslogtreecommitdiff
path: root/sim
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2022-11-10 02:12:42 +0700
committerMike Frysinger <vapier@gentoo.org>2022-11-10 14:27:40 +0700
commit99961e814f795e4e4fd40e5f7f5bae52150963d5 (patch)
tree5d87a31ae04d90c202109426dcfaf5aa4837da2d /sim
parent23af236b63a96738c195d2544abfc85552abd0a2 (diff)
downloadgdb-99961e814f795e4e4fd40e5f7f5bae52150963d5.zip
gdb-99961e814f795e4e4fd40e5f7f5bae52150963d5.tar.gz
gdb-99961e814f795e4e4fd40e5f7f5bae52150963d5.tar.bz2
sim: ppc: pull default switch return out
This saves a single line for the same result. By itself, it's not interesting, but we can further optimize the generated output and completely omit the switch table in some cases. Which we'll do in follow up commits.
Diffstat (limited to 'sim')
-rw-r--r--sim/ppc/dgen.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sim/ppc/dgen.c b/sim/ppc/dgen.c
index 0f9b02f..0cc210b 100644
--- a/sim/ppc/dgen.c
+++ b/sim/ppc/dgen.c
@@ -248,9 +248,8 @@ gen_spreg_c(spreg_table *table, lf *file)
else
ASSERT(0);
}
- lf_printf(file, " default:\n");
- lf_printf(file, " return 0;\n");
lf_printf(file, " }\n");
+ lf_printf(file, " return 0;\n");
}
lf_printf(file, "}\n");
}