[objdump][macho] Emit segment names along with section names
authorDaniel Sanders <daniel_l_sanders@apple.com>
Fri, 4 Sep 2020 00:07:59 +0000 (17:07 -0700)
committerDaniel Sanders <daniel_l_sanders@apple.com>
Fri, 4 Sep 2020 16:57:02 +0000 (09:57 -0700)
commit3f1a9b7eca0a969e18aabefa3ceb9054b94c17c0
tree956775151f19a734916bc992094a2e89932b3823
parent51932fc6bde88d1798a6cdea1f3885164d5524d7
[objdump][macho] Emit segment names along with section names

I recently came across a MachO with multiple sections of the same name but
different segments. We should emit the segment name alongside the section name
for MachO's.

Differential Revision: https://reviews.llvm.org/D87119
llvm/test/MC/AArch64/arm64_32-compact-unwind.s
llvm/test/tools/llvm-objdump/MachO/section-contents.test
llvm/tools/llvm-objdump/llvm-objdump.cpp