Show register names in DWARF unwind info.
authorGreg Clayton <gclayton@fb.com>
Sat, 3 Oct 2020 01:05:10 +0000 (18:05 -0700)
committerGreg Clayton <gclayton@fb.com>
Mon, 5 Oct 2020 22:34:33 +0000 (15:34 -0700)
commita4b842e29411da2d08fed0e99918a7cf089bb84d
tree67c41cd10626bafd71f9c28b8ae45a24a804b900
parent69f87400a85e13482c535365bb19272a15d054b9
Show register names in DWARF unwind info.

Register context information was already being passed into the DWARFDebugFrame code that dumps unwind information but it wasn't being used. This change adds the ability to dump registers names of a valid MC register context was passed in and if it knows about the register. Updated the tests to use the newly returned register names.

Differential Revision: https://reviews.llvm.org/D88767
llvm/lib/DebugInfo/DWARF/DWARFDebugFrame.cpp
llvm/test/DebugInfo/RISCV/eh-frame.s
llvm/test/DebugInfo/dwarfdump-debug-frame-simple.test
llvm/test/MC/ELF/cfi-restore-extended.s
llvm/test/MC/Mips/eh-frame.s
llvm/test/MC/X86/i386-darwin-frame-register.ll