diff options
author | Mike Frysinger <vapier@gentoo.org> | 2022-11-10 02:15:34 +0700 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2022-11-10 14:27:40 +0700 |
commit | 1eff12f75acd62066399437042b7c016463ad932 (patch) | |
tree | 2227dd6a06ddbea5ad70723034f163f41a215531 /libiberty/strrchr.c | |
parent | 99961e814f795e4e4fd40e5f7f5bae52150963d5 (diff) | |
download | gdb-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