[all-commits] [llvm/llvm-project] 1b112c: PR37255: DebugInfo: LTO with -g inlined into -gmlt...

David Blaikie via All-commits all-commits at lists.llvm.org
Sun Jun 27 14:47:16 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 1b112c80a68697687189ddf5bb01b2edacb618af
      https://github.com/llvm/llvm-project/commit/1b112c80a68697687189ddf5bb01b2edacb618af
  Author: David Blaikie <dblaikie at gmail.com>
  Date:   2021-06-27 (Sun, 27 Jun 2021)

  Changed paths:
    M llvm/lib/CodeGen/AsmPrinter/DwarfUnit.cpp
    M llvm/lib/CodeGen/AsmPrinter/DwarfUnit.h
    A llvm/test/DebugInfo/X86/split-dwarf-cross-cu-gmlt-g.ll

  Log Message:
  -----------
  PR37255: DebugInfo: LTO with -g inlined into -gmlt combined with Split DWARF without CU cross-references

A combination of features ^ that lead to a mismatch of expectations
about how a subprogram definition DIE would be produced with/without a
declaration when taking full -g debug info and inlining it into a -gmlt
CU - specifically when using Split DWARF that doesn't support cross-CU
references, so we have to put the -g debug info into the -gmlt CU, which
gets confusing about which mode is respected.

This patch comes down on respecting the CU the debug info is emitted
into, rather than preserving the full debug info when it's emitted into
the gmlt CU.




More information about the All-commits mailing list