projects
/
binutils-gdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
23af236
)
sim: ppc: pull default switch return out
author
Mike Frysinger
<vapier@gentoo.org>
Wed, 9 Nov 2022 19:12:42 +0000
(
02:12
+0700)
committer
Mike Frysinger
<vapier@gentoo.org>
Thu, 10 Nov 2022 07:27:40 +0000
(14:27 +0700)
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.
sim/ppc/dgen.c
patch
|
blob
|
history
diff --git
a/sim/ppc/dgen.c
b/sim/ppc/dgen.c
index 0f9b02f91084260b9ace1110dae3ba1bb0169548..0cc210b5fed1e365e5a84b686336daab16f5eade 100644
(file)
--- 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");
}