mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-22 10:29:35 +00:00
Do not emit name entry for a pointer type.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@84276 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
fa16354e03
commit
808b82664f
@ -923,7 +923,7 @@ void DwarfDebug::ConstructTypeDIE(CompileUnit *DW_Unit, DIE &Buffer,
|
|||||||
AddType(DW_Unit, &Buffer, FromTy);
|
AddType(DW_Unit, &Buffer, FromTy);
|
||||||
|
|
||||||
// Add name if not anonymous or intermediate type.
|
// Add name if not anonymous or intermediate type.
|
||||||
if (Name)
|
if (Name && Tag != dwarf::DW_TAG_pointer_type)
|
||||||
AddString(&Buffer, dwarf::DW_AT_name, dwarf::DW_FORM_string, Name);
|
AddString(&Buffer, dwarf::DW_AT_name, dwarf::DW_FORM_string, Name);
|
||||||
|
|
||||||
// Add size if non-zero (derived types might be zero-sized.)
|
// Add size if non-zero (derived types might be zero-sized.)
|
||||||
|
Loading…
Reference in New Issue
Block a user