[objdump][macho] Check arch before formating reloc name as arm64 addend
authorPeng Guo <peng_guo@apple.com>
Fri, 16 Oct 2020 20:47:46 +0000 (13:47 -0700)
committerDaniel Sanders <daniel_l_sanders@apple.com>
Fri, 16 Oct 2020 21:30:22 +0000 (14:30 -0700)
commit109113015ebeeceec862fc53a678b3619a879ce4
tree73f4b1056e1d7f968e53d465ca61c777981e1989
parentf16cecf3752a7c168293934d2ba6472a6b405694
[objdump][macho] Check arch before formating reloc name as arm64 addend

Before formating ARM64_RELOC_ADDEND relocation target name as a hex
number, the architecture need to be checked since other architectures
can define a different relocation type with the same integer as
ARM64_RELOC_ADDEND.

Reviewed By: MaskRay

Differential Revision: https://reviews.llvm.org/D89094
llvm/tools/llvm-objdump/MachODump.cpp