[llvm-objdump][ARM] Print inline relocations when dumping ARM data
authorFangrui Song <maskray@google.com>
Sat, 2 May 2020 05:52:42 +0000 (22:52 -0700)
committerFangrui Song <maskray@google.com>
Mon, 4 May 2020 18:51:39 +0000 (11:51 -0700)
commitac9e8b3a7e295afdebcd9fff69e720f04e026bff
tree1d0caf2c94ea5659608f6c54f4576774f7c2efeb
parent54fa46aa0a82bd281d0ba31fad69a227de4a622c
[llvm-objdump][ARM] Print inline relocations when dumping ARM data

Fixes PR44357

For ARM ELF, regions covered by data mapping symbols `$d` are dumped as `.byte`, `.short` or `.word` but inline relocations are not printed. This patch merges its loop into the normal instruction printing loop so that inline relocations are printed.

Reviewed By: nickdesaulniers

Differential Revision: https://reviews.llvm.org/D79284
llvm/test/tools/llvm-objdump/ELF/ARM/disassemble-code-data-mix.s
llvm/tools/llvm-objdump/llvm-objdump.cpp