[lldb/DWARF] Simplify DIE extraction code slightly
authorPavel Labath <pavel@labath.sk>
Sat, 27 Mar 2021 20:00:59 +0000 (21:00 +0100)
committerPavel Labath <pavel@labath.sk>
Tue, 30 Mar 2021 06:44:17 +0000 (08:44 +0200)
commit1b96e133cf5215cb9ebfe7f14630f479c1611f22
tree1879a802a0e4f7678fa201db3dc0aff777c1d7a4
parent92ddd3c1b6cd8f01f39dfd716cf3e976de126e66
[lldb/DWARF] Simplify DIE extraction code slightly

Remove the "depth" variable, as the same information can be obtained
through die_index_stack.size().

Also add a test case for a one tricky case I noticed -- a unit
containing only a null unit die.
lldb/source/Plugins/SymbolFile/DWARF/DWARFUnit.cpp