aboutsummaryrefslogtreecommitdiff
path: root/libiberty/strrchr.c
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2022-11-10 02:15:34 +0700
committerMike Frysinger <vapier@gentoo.org>2022-11-10 14:27:40 +0700
commit1eff12f75acd62066399437042b7c016463ad932 (patch)
tree2227dd6a06ddbea5ad70723034f163f41a215531 /libiberty/strrchr.c
parent99961e814f795e4e4fd40e5f7f5bae52150963d5 (diff)
downloadgdb-1eff12f75acd62066399437042b7c016463ad932.zip
gdb-1eff12f75acd62066399437042b7c016463ad932.tar.gz
gdb-1eff12f75acd62066399437042b7c016463ad932.tar.bz2
sim: ppc: collapse is_valid switch table more
Instead of writing: case 1: return 1; case 2: return 1; ...etc... Output a single return so we get: case 1: case 2: case ... return 1; This saves ~100 lines of code. Hopefully the compiler was already smart enough to optimize to the same code, but if not, this probably helps there too :).
Diffstat (limited to 'libiberty/strrchr.c')
0 files changed, 0 insertions, 0 deletions