Merge a few Cases using StringSwitch::Cases.

llvm-svn: 293452
This commit is contained in:
Rui Ueyama 2017-01-30 01:50:16 +00:00
parent ea7abaf731
commit 8e0c326756
1 changed files with 2 additions and 4 deletions

View File

@ -94,10 +94,8 @@ static std::tuple<ELFKind, uint16_t, uint8_t> parseEmulation(StringRef Emul) {
.Cases("aarch64elf", "aarch64linux", {ELF64LEKind, EM_AARCH64})
.Case("armelf_linux_eabi", {ELF32LEKind, EM_ARM})
.Case("elf32_x86_64", {ELF32LEKind, EM_X86_64})
.Case("elf32btsmip", {ELF32BEKind, EM_MIPS})
.Case("elf32ltsmip", {ELF32LEKind, EM_MIPS})
.Case("elf32btsmipn32", {ELF32BEKind, EM_MIPS})
.Case("elf32ltsmipn32", {ELF32LEKind, EM_MIPS})
.Cases("elf32btsmip", "elf32btsmipn32", {ELF32BEKind, EM_MIPS})
.Cases("elf32ltsmip", "elf32ltsmipn32", {ELF32LEKind, EM_MIPS})
.Case("elf32ppc", {ELF32BEKind, EM_PPC})
.Case("elf64btsmip", {ELF64BEKind, EM_MIPS})
.Case("elf64ltsmip", {ELF64LEKind, EM_MIPS})