[llvm-objdump-macho] print per-second-level-page encodings for option --unwind-info
authorGreg McGary <gkm@fb.com>
Fri, 11 Dec 2020 04:54:45 +0000 (20:54 -0800)
committerGreg McGary <gkm@fb.com>
Sat, 30 Jan 2021 04:59:07 +0000 (21:59 -0700)
commit61a5502a93ab938edc66422e41ad98757a6f920b
treecf68515e429cccd5f5359b58a8127f27e6941f9f
parenta5d9e0c79befb6856ae78a3c5f515287ad89a40f
[llvm-objdump-macho] print per-second-level-page encodings for option --unwind-info

Compact unwind entries have 8 bits for the encoding-table offset:
* offsets 0..126 reference the global commmon-encodings table, while
* offsets 127..255 reference a per-second-level-page table.
This diff teaches `llvm-objdump` to print this per-page encodings table.

Differential Revision: https://reviews.llvm.org/D93265
llvm/test/tools/llvm-objdump/MachO/Inputs/unwind-info-excess.macho-x86_64 [new file with mode: 0755]
llvm/test/tools/llvm-objdump/MachO/unwind-info-excess-x86_64.test [new file with mode: 0644]
llvm/tools/llvm-objdump/MachODump.cpp