forked from OSchip/llvm-project
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 commit56fa34ae35
.
This commit is contained in:
parent
9083d0a40d
commit
6ade2dea7b
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue