[all-commits] [llvm/llvm-project] f19471: [DebugInfo] Only create concrete DIEs of concrete ...

Ellis Hoag via All-commits all-commits at lists.llvm.org
Tue Nov 9 10:53:02 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f19471a24985a0cbc32b6548c8fce1d2514e8243
      https://github.com/llvm/llvm-project/commit/f19471a24985a0cbc32b6548c8fce1d2514e8243
  Author: Ellis Hoag <ellis.sparky.hoag at gmail.com>
  Date:   2021-11-09 (Tue, 09 Nov 2021)

  Changed paths:
    M llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp
    M llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
    M llvm/lib/CodeGen/AsmPrinter/DwarfDebug.h
    M llvm/lib/CodeGen/AsmPrinter/DwarfUnit.cpp
    A llvm/test/DebugInfo/Generic/import-inlined-declaration.ll
    A llvm/test/DebugInfo/Generic/inlined-local-type.ll
    A llvm/test/DebugInfo/Generic/inlined-static-var.ll

  Log Message:
  -----------
  [DebugInfo] Only create concrete DIEs of concrete functions

At the begining of the module we can iterate through the functions to
see which SPs should have concrete DIEs. Then when we need to reference
a DIE for a SP we can decide if it's ok to create a concrete DIE or not.

Fixes
 * https://bugs.llvm.org/show_bug.cgi?id=52159
 * https://bugs.llvm.org/show_bug.cgi?id=30637

Reviewed By: dblaikie

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




More information about the All-commits mailing list