llvm/tools/llvm-objdump
Kevin Enderby 398ecdfe0a Fix a bugs with using some Mach-O command line flags like "-arch armv7m".
The Mach-O command line flag like "-arch armv7m" does not match the
arch name part of its llvm Triple which is "thumbv7m-apple-darwin”.

I think the best way to fix this is to have
llvm::object::MachOObjectFile::getArchTriple() optionally return the
name of the Mach-O arch flag that would be used with -arch that
matches the CPUType and CPUSubType.  Then change
llvm::object::MachOUniversalBinary::ObjectForArch::getArchTypeName()
to use that and change it to getArchFlagName() as the type name is
really part of the Triple and the -arch flag name is a Mach-O thing
for a specific Triple with a specific Mcpu value.

rdar://29663637


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@290001 91177308-0d34-0410-b5e6-96231b3b80d8
2016-12-16 22:54:02 +00:00
..
CMakeLists.txt [WebAssembly] Add llvm-objdump support for wasm file format 2016-11-30 16:49:11 +00:00
COFFDump.cpp [llvm-objdump] Switch to a range loop. NFCI. 2016-09-30 23:22:42 +00:00
ELFDump.cpp [ELF] Convert ELF.h to Expected<T>. 2016-11-16 05:10:28 +00:00
llvm-objdump.cpp [bpf] change llvm-objdump to print dec instead of hex 2016-12-13 19:07:08 +00:00
llvm-objdump.h [WebAssembly] Add llvm-objdump support for wasm file format 2016-11-30 16:49:11 +00:00
LLVMBuild.txt Add an c++ itanium demangler to llvm. 2016-09-06 19:16:48 +00:00
MachODump.cpp Fix a bugs with using some Mach-O command line flags like "-arch armv7m". 2016-12-16 22:54:02 +00:00
WasmDump.cpp [WebAssembly] Add llvm-objdump support for wasm file format 2016-11-30 16:49:11 +00:00