mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-18 18:42:46 +02:00
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 56fa34ae3570a34fd0f4c2cf1bfaf095da01a959.
This commit is contained in:
parent
138541b335
commit
3d6802a222
@ -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
Block a user