mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-20 16:17:38 +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:
@@ -24,7 +24,6 @@ using namespace llvm;
|
||||
|
||||
const char *DwarfAccelTable::Atom::AtomTypeString(enum AtomType AT) {
|
||||
switch (AT) {
|
||||
default: llvm_unreachable("invalid AtomType!");
|
||||
case eAtomTypeNULL: return "eAtomTypeNULL";
|
||||
case eAtomTypeDIEOffset: return "eAtomTypeDIEOffset";
|
||||
case eAtomTypeCUOffset: return "eAtomTypeCUOffset";
|
||||
@@ -32,6 +31,7 @@ const char *DwarfAccelTable::Atom::AtomTypeString(enum AtomType AT) {
|
||||
case eAtomTypeNameFlags: return "eAtomTypeNameFlags";
|
||||
case eAtomTypeTypeFlags: return "eAtomTypeTypeFlags";
|
||||
}
|
||||
llvm_unreachable("invalid AtomType!");
|
||||
}
|
||||
|
||||
// The general case would need to have a less hard coded size for the
|
||||
|
||||
Reference in New Issue
Block a user