From: Aaron Ballman Date: Sun, 24 Aug 2014 13:25:16 +0000 (+0000) Subject: This code is from r216285, which did not go out to the mailing list for some reason. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=5cb5e7e323aa908a8ebf2b9599e363b3b3225a26;p=oota-llvm.git This code is from r216285, which did not go out to the mailing list for some reason. The switch statement would never fire due to the preceding break statement. Also, the switch statement has a default label with no case labels. Simplified the code, and allow it to execute. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@216346 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/tools/llvm-objdump/MachODump.cpp b/tools/llvm-objdump/MachODump.cpp index d95fa78ad72..2bce8e6ae87 100644 --- a/tools/llvm-objdump/MachODump.cpp +++ b/tools/llvm-objdump/MachODump.cpp @@ -1036,12 +1036,7 @@ static void PrintMachHeader(uint32_t magic, uint32_t cputype, break; case MachO::CPU_SUBTYPE_X86_64_H: outs() << " Haswell"; - break; - switch (cpusubtype & ~MachO::CPU_SUBTYPE_MASK) { - default: - outs() << format(" %10d", cpusubtype & ~MachO::CPU_SUBTYPE_MASK); - break; - } + outs() << format(" %10d", cpusubtype & ~MachO::CPU_SUBTYPE_MASK); break; case MachO::CPU_TYPE_ARM: outs() << " ARM";