[all-commits] [llvm/llvm-project] f69f23: Revert "DebugInfo: Don't put types in type units i...

David Blaikie via All-commits all-commits at lists.llvm.org
Tue Feb 1 16:13:33 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f69f23396d32c95dacf3765bc63af02b23ccff3e
      https://github.com/llvm/llvm-project/commit/f69f23396d32c95dacf3765bc63af02b23ccff3e
  Author: David Blaikie <dblaikie at gmail.com>
  Date:   2022-02-01 (Tue, 01 Feb 2022)

  Changed paths:
    M llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
    M llvm/lib/CodeGen/AsmPrinter/DwarfDebug.h
    M llvm/lib/CodeGen/AsmPrinter/DwarfUnit.cpp
    M llvm/test/DebugInfo/X86/tu-to-non-tu.ll

  Log Message:
  -----------
  Revert "DebugInfo: Don't put types in type units if they reference internal linkage types"

This reverts commit ab4756338c5b2216d52d9152b2f7e65f233c4dac.

Breaks some cases, including this:

namespace {
template <typename> struct a {};
} // namespace
class c {
  c();
};
class b {
  b();
  a<c> ax;
};
b::b() {}
c::c() {}

By producing a reference to a type unit for "c" but not producing the type unit.




More information about the All-commits mailing list