Revert "[DWARF] Fix PR51087 Extraneous enum record in DWARF with type units"
authorDavid Blaikie <dblaikie@gmail.com>
Fri, 24 Dec 2021 04:28:37 +0000 (20:28 -0800)
committerDavid Blaikie <dblaikie@gmail.com>
Fri, 24 Dec 2021 04:50:30 +0000 (20:50 -0800)
commitb05df0287bafff65723c3aacfc3a6b43183a9a26
treede848754ee959ca2f65975e91d13f3b458780249
parentf3d4e168dbc7e736ef535c673ee635a40feb2037
Revert "[DWARF] Fix PR51087 Extraneous enum record in DWARF with type units"

Causes invalid debug_gnu_pubnames (& I think non-gnu pubnames too) -
visible as 0 values for the offset in gnu pubnames. More details on the
original review in D115325.

This reverts commit 78d15a112cbd545fbb6e1aa37c221ef5aeffb3f2.
This reverts commit 54586582d3e17c0bba76258d2930486a6dfaaf2a.
llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
llvm/lib/CodeGen/AsmPrinter/DwarfDebug.h
llvm/test/DebugInfo/Generic/type-units-maybe-unused-types.ll [moved from llvm/test/DebugInfo/X86/type-units-maybe-unused-types.ll with 98% similarity]