[llvm-readobj] [ARMWinEH] Try to resolve label symbols into regular ones
authorMartin Storsjö <martin@martin.st>
Mon, 12 Apr 2021 11:13:32 +0000 (14:13 +0300)
committerMartin Storsjö <martin@martin.st>
Tue, 4 May 2021 19:22:18 +0000 (22:22 +0300)
commit70c4930637fa9a43eabcbde66e5a74262da1e46c
treec7ff145419cd473497ee1395aa83103a506e1775
parent82de4e075339f5ad8d68cfe31eb45b771d4750ae
[llvm-readobj] [ARMWinEH] Try to resolve label symbols into regular ones

Unwind info generated by MSVC tends to have relocations pointing at
static "label" symbols like "$LN4" instead of regular ones based on
the actual function's name. Try to resolve such symbols to a non-label
symbol if possible (ideally to an external symbol), to improve
the readability.

Differential Revision: https://reviews.llvm.org/D101567
llvm/test/tools/llvm-readobj/COFF/arm64-unwind-preferred-symbol.yaml [new file with mode: 0644]
llvm/tools/llvm-readobj/ARMWinEHPrinter.cpp
llvm/tools/llvm-readobj/ARMWinEHPrinter.h