[lldb][DWARFUnit] Implement PeekDIEName query (#78486)
commit46845074557484a82f4dc73647dad399e1c00e89
authorFelipe de Azevedo Piovezan <fpiovezan@apple.com>
Sat, 20 Jan 2024 00:11:08 +0000 (19 16:11 -0800)
committerGitHub <noreply@github.com>
Sat, 20 Jan 2024 00:11:08 +0000 (19 16:11 -0800)
tree0ed522bd6dc35678201195d05f9c74c6394e65d3
parent904cf66ec1d4089e5e661eb996487ba132b97664
[lldb][DWARFUnit] Implement PeekDIEName query (#78486)

This allows us to query the AT_Name of a DIE without parsing the entire
CU.

Part of the ongoing effort to support IDX_Parent in accelerator tables
[1].

[1]:
https://discourse.llvm.org/t/rfc-improve-dwarf-5-debug-names-type-lookup-parsing-speed/74151/44
lldb/source/Plugins/SymbolFile/DWARF/DWARFDebugInfo.cpp
lldb/source/Plugins/SymbolFile/DWARF/DWARFDebugInfo.h
lldb/source/Plugins/SymbolFile/DWARF/DWARFFormValue.cpp
lldb/source/Plugins/SymbolFile/DWARF/DWARFFormValue.h
lldb/source/Plugins/SymbolFile/DWARF/DWARFUnit.cpp
lldb/source/Plugins/SymbolFile/DWARF/DWARFUnit.h
lldb/unittests/SymbolFile/DWARF/DWARFDIETest.cpp