mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-16 11:30:51 +00:00
Constructors and operators for anonymous aggregates does not names. Do not force empty AT_name attribute in such cases.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@97533 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
a9445e11c5
commit
6b506cbce0
@ -1177,7 +1177,9 @@ DIE *DwarfDebug::createSubprogramDIE(const DISubprogram &SP, bool MakeDecl) {
|
|||||||
return SPDie;
|
return SPDie;
|
||||||
|
|
||||||
SPDie = new DIE(dwarf::DW_TAG_subprogram);
|
SPDie = new DIE(dwarf::DW_TAG_subprogram);
|
||||||
addString(SPDie, dwarf::DW_AT_name, dwarf::DW_FORM_string, SP.getName());
|
// constructors and operators for anonymous aggregates does not names.
|
||||||
|
if (!SP.getName().empty())
|
||||||
|
addString(SPDie, dwarf::DW_AT_name, dwarf::DW_FORM_string, SP.getName());
|
||||||
|
|
||||||
StringRef LinkageName = SP.getLinkageName();
|
StringRef LinkageName = SP.getLinkageName();
|
||||||
if (!LinkageName.empty())
|
if (!LinkageName.empty())
|
||||||
|
Loading…
Reference in New Issue
Block a user