mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-21 01:12:32 +08:00
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.
This commit is contained in:
parent
23af236b63
commit
99961e814f
@ -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");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user