mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-13 22:24:07 +00:00
Removing unused default switch cases in switches over enums that already account for all enumeration values explicitly.
(This time I believe I've checked all the -Wreturn-type warnings from GCC & added the couple of llvm_unreachables necessary to silence them. If I've missed any, I'll happily fix them as soon as I know about them) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148262 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -48,7 +48,6 @@ ARMConstantPoolValue::~ARMConstantPoolValue() {}
|
||||
|
||||
const char *ARMConstantPoolValue::getModifierText() const {
|
||||
switch (Modifier) {
|
||||
default: llvm_unreachable("Unknown modifier!");
|
||||
// FIXME: Are these case sensitive? It'd be nice to lower-case all the
|
||||
// strings if that's legal.
|
||||
case ARMCP::no_modifier: return "none";
|
||||
@ -58,6 +57,7 @@ const char *ARMConstantPoolValue::getModifierText() const {
|
||||
case ARMCP::GOTTPOFF: return "gottpoff";
|
||||
case ARMCP::TPOFF: return "tpoff";
|
||||
}
|
||||
llvm_unreachable("Unknown modifier!");
|
||||
}
|
||||
|
||||
int ARMConstantPoolValue::getExistingMachineCPValue(MachineConstantPool *CP,
|
||||
|
Reference in New Issue
Block a user