Revert "DebugInfo: Temporarily work around -gsplit-dwarf + LTO .debug_gnu_pubnames regression after D94976"

Backing out this workaround to focus on fixing whatever's wrong with
.debug_gnu_pubnames, I'll revert the cause, (8998f584) in the next commit.

This reverts commit 56fa34ae35.
This commit is contained in:
Jeremy Morse 2021-02-08 11:37:53 +00:00
parent 9083d0a40d
commit 6ade2dea7b
1 changed files with 1 additions and 3 deletions

View File

@ -551,9 +551,7 @@ DIE *DwarfUnit::getOrCreateContextDIE(const DIScope *Context) {
if (auto *SP = dyn_cast<DISubprogram>(Context)) {
assert(SP->isDefinition());
// When generating type units, each unit gets its own subprogram.
// FIXME: constructSubprogramDefinitionDIE may produce .debug_gnu_pubnames
// with 0 DIE Offset entries with split dwarf.
if (DD->generateTypeUnits() || DD->useSplitDwarf())
if (DD->generateTypeUnits())
return getOrCreateSubprogramDIE(SP);
// Subprogram definitions should be created in the Unit that they specify,