[llvm-readobj] Transform 'switch' with the only 'case' statement

to 'if' statement.

No functional changes,

llvm-svn: 207748
This commit is contained in:
Simon Atanasyan 2014-05-01 11:57:40 +00:00
parent 3db1d580b3
commit 80070b5598
1 changed files with 2 additions and 5 deletions

View File

@ -485,14 +485,11 @@ void ELFDumper<ELFT>::printFileHeaders() {
W.printHex ("Entry", Header->e_entry);
W.printHex ("ProgramHeaderOffset", Header->e_phoff);
W.printHex ("SectionHeaderOffset", Header->e_shoff);
switch (Header->e_machine) {
case EM_MIPS:
if (Header->e_machine == EM_MIPS)
W.printFlags("Flags", Header->e_flags, makeArrayRef(ElfHeaderMipsFlags),
unsigned(ELF::EF_MIPS_ARCH));
break;
default:
else
W.printFlags("Flags", Header->e_flags);
}
W.printNumber("HeaderSize", Header->e_ehsize);
W.printNumber("ProgramHeaderEntrySize", Header->e_phentsize);
W.printNumber("ProgramHeaderCount", Header->e_phnum);