Make llvm-objdump handle both arm and thumb disassembly from the same Mach-O
authorKevin Enderby <enderby@apple.com>
Mon, 18 Aug 2014 20:21:02 +0000 (20:21 +0000)
committerKevin Enderby <enderby@apple.com>
Mon, 18 Aug 2014 20:21:02 +0000 (20:21 +0000)
commitf759032ccd3709dcd7362b0ed51760ee4e47025a
tree26328022c53f9bc7afb240358e5fa47f9ff831ef
parent0526d167a9f8fcd476f4382d933dda208a4eb5c8
Make llvm-objdump handle both arm and thumb disassembly from the same Mach-O
file with -macho, the Mach-O specific object file parser option.

After some discussion I chose to do this implementation contained in the logic
of llvm-objdump’s MachODump.cpp using a second disassembler for thumb when
needed and with updates mostly contained in the MachOObjectFile class.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@215931 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Object/MachO.h
include/llvm/Object/SymbolicFile.h
lib/Object/MachOObjectFile.cpp
test/tools/llvm-objdump/ARM/macho-arm-and-thumb.test [new file with mode: 0644]
tools/llvm-objdump/MachODump.cpp