forked from OSchip/llvm-project
Merge a few Cases using StringSwitch::Cases.
llvm-svn: 293452
This commit is contained in:
parent
ea7abaf731
commit
8e0c326756
|
@ -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})
|
||||
|
|
Loading…
Reference in New Issue