mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-21 18:24:23 +00:00
Avoid emitting a DWARF type attribute for an ObjC property of type
void. Patch by Scott Talbot. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@199924 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -1209,7 +1209,8 @@ void DwarfUnit::constructTypeDIE(DIE &Buffer, DICompositeType CTy) {
|
||||
ElemDie = createAndAddDIE(Property.getTag(), Buffer);
|
||||
StringRef PropertyName = Property.getObjCPropertyName();
|
||||
addString(ElemDie, dwarf::DW_AT_APPLE_property_name, PropertyName);
|
||||
addType(ElemDie, Property.getType());
|
||||
if (Property.getType())
|
||||
addType(ElemDie, Property.getType());
|
||||
addSourceLine(ElemDie, Property);
|
||||
StringRef GetterName = Property.getObjCPropertyGetterName();
|
||||
if (!GetterName.empty())
|
||||
|
Reference in New Issue
Block a user