[all-commits] [llvm/llvm-project] 1b96e1: [lldb/DWARF] Simplify DIE extraction code slightly

Pavel Labath via All-commits all-commits at lists.llvm.org
Mon Mar 29 23:44:38 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 1b96e133cf5215cb9ebfe7f14630f479c1611f22
      https://github.com/llvm/llvm-project/commit/1b96e133cf5215cb9ebfe7f14630f479c1611f22
  Author: Pavel Labath <pavel at labath.sk>
  Date:   2021-03-30 (Tue, 30 Mar 2021)

  Changed paths:
    M lldb/source/Plugins/SymbolFile/DWARF/DWARFUnit.cpp

  Log Message:
  -----------
  [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.




More information about the All-commits mailing list