<div dir="ltr">Done in r249992. I personally prefer the original format than clang-format's format for this code (so I wrote that way), but that's probably an argument we'd like to avoid just by using clang-format, so the new code is ok with me.<div class="gmail_extra"><br><div class="gmail_quote">On Sun, Oct 11, 2015 at 12:34 PM, Rafael Espíndola <span dir="ltr"><<a href="mailto:rafael.espindola@gmail.com" target="_blank">rafael.espindola@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">> +#include <utility><br>
<br>
This is not being used.<br>
<span><br>
<br>
> +static std::pair<ELFKind, uint16_t> parseEmulation(StringRef S) {<br>
> +  if (S == "elf32btsmip") return {ELF32BEKind, EM_MIPS};<br>
> +  if (S == "elf32ltsmip") return {ELF32LEKind, EM_MIPS};<br>
> +  if (S == "elf32ppc")    return {ELF32BEKind, EM_PPC};<br>
> +  if (S == "elf64ppc")    return {ELF64BEKind, EM_PPC64};<br>
> +  if (S == "elf_i386")    return {ELF32LEKind, EM_386};<br>
> +  if (S == "elf_x86_64")  return {ELF64LEKind, EM_X86_64};<br>
> +  error("Unknown emulation: " + S);<br>
>  }<br>
<br>
</span>Please git-clang-format the patch.<br>
<br>
Cheers,<br>
Rafael<br>
</blockquote></div><br></div></div>