mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-21 18:24:23 +00:00
DebugInfo: Remove DIObjCProperty attribute accessors, NFC
There's only one user of the various `DIObjCProperty::is*Property()` accessors -- `DwarfUnit::constructTypeDIE()` -- and it's just using the reverse logic to reconstruct the bitfield. Drop this API and simplify the only caller. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@234818 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -1072,20 +1072,7 @@ void DwarfUnit::constructTypeDIE(DIE &Buffer, DICompositeType CTy) {
|
||||
StringRef SetterName = Property.getObjCPropertySetterName();
|
||||
if (!SetterName.empty())
|
||||
addString(ElemDie, dwarf::DW_AT_APPLE_property_setter, SetterName);
|
||||
unsigned PropertyAttributes = 0;
|
||||
if (Property.isReadOnlyObjCProperty())
|
||||
PropertyAttributes |= dwarf::DW_APPLE_PROPERTY_readonly;
|
||||
if (Property.isReadWriteObjCProperty())
|
||||
PropertyAttributes |= dwarf::DW_APPLE_PROPERTY_readwrite;
|
||||
if (Property.isAssignObjCProperty())
|
||||
PropertyAttributes |= dwarf::DW_APPLE_PROPERTY_assign;
|
||||
if (Property.isRetainObjCProperty())
|
||||
PropertyAttributes |= dwarf::DW_APPLE_PROPERTY_retain;
|
||||
if (Property.isCopyObjCProperty())
|
||||
PropertyAttributes |= dwarf::DW_APPLE_PROPERTY_copy;
|
||||
if (Property.isNonAtomicObjCProperty())
|
||||
PropertyAttributes |= dwarf::DW_APPLE_PROPERTY_nonatomic;
|
||||
if (PropertyAttributes)
|
||||
if (unsigned PropertyAttributes = Property.getAttributes())
|
||||
addUInt(ElemDie, dwarf::DW_AT_APPLE_property_attribute, None,
|
||||
PropertyAttributes);
|
||||
|
||||
|
Reference in New Issue
Block a user