[all-commits] [llvm/llvm-project] 0328fe: DebugInfo: Filter DWARFv5 TUs out of the debug_inf...

David Blaikie via All-commits all-commits at lists.llvm.org
Wed Sep 23 22:16:12 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 0328feb086fca6ed8e57265aa073d7600ac9079c
      https://github.com/llvm/llvm-project/commit/0328feb086fca6ed8e57265aa073d7600ac9079c
  Author: David Blaikie <dblaikie at gmail.com>
  Date:   2020-09-23 (Wed, 23 Sep 2020)

  Changed paths:
    M llvm/include/llvm/DebugInfo/DWARF/DWARFContext.h
    M llvm/include/llvm/DebugInfo/DWARF/DWARFDebugMacro.h
    M llvm/include/llvm/DebugInfo/DWARF/DWARFUnit.h
    M llvm/lib/DebugInfo/DWARF/DWARFContext.cpp
    M llvm/lib/DebugInfo/DWARF/DWARFDebugMacro.cpp

  Log Message:
  -----------
  DebugInfo: Filter DWARFv5 TUs out of the debug_info unit list when CUs requested

Since DWARFv5 places TUs in debug_info, some of DWARFContext's APIs have
become a bit erroneous, including TUs in the CU list by accident.
Correct that by providing compile_units (& dwo_compile_units) that
filter out the type units from the debug_info units.

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




More information about the All-commits mailing list