[lld] r249965 - ELF2: Simplify. NFC.
Rafael EspĂndola via llvm-commits
llvm-commits at lists.llvm.org
Sun Oct 11 12:34:38 PDT 2015
> +#include <utility>
This is not being used.
> +static std::pair<ELFKind, uint16_t> parseEmulation(StringRef S) {
> + if (S == "elf32btsmip") return {ELF32BEKind, EM_MIPS};
> + if (S == "elf32ltsmip") return {ELF32LEKind, EM_MIPS};
> + if (S == "elf32ppc") return {ELF32BEKind, EM_PPC};
> + if (S == "elf64ppc") return {ELF64BEKind, EM_PPC64};
> + if (S == "elf_i386") return {ELF32LEKind, EM_386};
> + if (S == "elf_x86_64") return {ELF64LEKind, EM_X86_64};
> + error("Unknown emulation: " + S);
> }
Please git-clang-format the patch.
Cheers,
Rafael
More information about the llvm-commits
mailing list