Simplify `GetName`+`AppendTypeName` by `DWARFDIE`
authorJan Kratochvil <jan.kratochvil@redhat.com>
Thu, 23 May 2019 08:00:49 +0000 (08:00 +0000)
committerJan Kratochvil <jan.kratochvil@redhat.com>
Thu, 23 May 2019 08:00:49 +0000 (08:00 +0000)
commit19a3c307310fc7b880ffc159105fe4b15027d599
tree89e11ecc94ceac0626ae9591e81ddabe118b5ea0
parent617cdc5a6d32ee4c6752a1759eff9a1c202e0992
Simplify `GetName`+`AppendTypeName` by `DWARFDIE`

In D61502#1503247 @clayborg suggested that DWARFUnit *+dw_offset_t can be now
replaced by DWARFDIE.

It is moved from DWARFDebugInfoEntry to DWARFDIE as noted by @clayborg.

I have also removed return type as (1) it was wrong in one case and (2) no
existing caller used the return type. I also refactored the deep nesting noted
by @JDevlieghere.

Differential Revision: https://reviews.llvm.org/D62211

llvm-svn: 361463
lldb/source/Plugins/SymbolFile/DWARF/DWARFDIE.cpp
lldb/source/Plugins/SymbolFile/DWARF/DWARFDIE.h
lldb/source/Plugins/SymbolFile/DWARF/DWARFDebugInfoEntry.cpp
lldb/source/Plugins/SymbolFile/DWARF/DWARFDebugInfoEntry.h