forked from OSchip/llvm-project
Always add global names. We're adding them in the rest of the code
as well as types. No functional change as they're not emitted unless the option is true anyhow. llvm-svn: 190346
This commit is contained in:
parent
5f93bb9299
commit
ba506db498
|
@ -769,9 +769,8 @@ void DwarfDebug::constructSubprogramDIE(CompileUnit *TheCU,
|
|||
// Add to context owner.
|
||||
TheCU->addToContextOwner(SubprogramDie, SP.getContext());
|
||||
|
||||
// Expose as global, if requested.
|
||||
if (HasDwarfPubSections)
|
||||
TheCU->addGlobalName(SP.getName(), SubprogramDie);
|
||||
// Expose as a global name.
|
||||
TheCU->addGlobalName(SP.getName(), SubprogramDie);
|
||||
}
|
||||
|
||||
void DwarfDebug::constructImportedEntityDIE(CompileUnit *TheCU,
|
||||
|
|
Loading…
Reference in New Issue