[lld] r293452 - Merge a few Cases using StringSwitch::Cases.

Rui Ueyama via llvm-commits llvm-commits at lists.llvm.org
Sun Jan 29 17:50:16 PST 2017


Author: ruiu
Date: Sun Jan 29 19:50:16 2017
New Revision: 293452

URL: http://llvm.org/viewvc/llvm-project?rev=293452&view=rev
Log:
Merge a few Cases using StringSwitch::Cases.

Modified:
    lld/trunk/ELF/Driver.cpp

Modified: lld/trunk/ELF/Driver.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/Driver.cpp?rev=293452&r1=293451&r2=293452&view=diff
==============================================================================
--- lld/trunk/ELF/Driver.cpp (original)
+++ lld/trunk/ELF/Driver.cpp Sun Jan 29 19:50:16 2017
@@ -94,10 +94,8 @@ static std::tuple<ELFKind, uint16_t, uin
           .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})




More information about the llvm-commits mailing list