@@ -85,14 +85,6 @@ class MCAsmInfo {
8585 // / Default is false.
8686 bool HasSubsectionsViaSymbols = false ;
8787
88- // / True if this is a MachO target that supports the macho-specific .zerofill
89- // / directive for emitting BSS Symbols. Default is false.
90- bool HasMachoZeroFillDirective = false ;
91-
92- // / True if this is a MachO target that supports the macho-specific .tbss
93- // / directive for emitting thread local BSS Symbols. Default is false.
94- bool HasMachoTBSSDirective = false ;
95-
9688 // / True if this is a non-GNU COFF target. The COFF port of the GNU linker
9789 // / doesn't handle associative comdats in the way that we would like to use
9890 // / them.
@@ -401,10 +393,6 @@ class MCAsmInfo {
401393 // / undefined symbol. Defaults to nullptr.
402394 const char *WeakRefDirective = nullptr ;
403395
404- // / True if we have a directive to declare a global as being a weak defined
405- // / symbol. Defaults to false.
406- bool HasWeakDefDirective = false ;
407-
408396 // / True if we have a directive to declare a global as being a weak defined
409397 // / symbol that can be hidden (unexported). Defaults to false.
410398 bool HasWeakDefCanBeHiddenDirective = false ;
@@ -603,8 +591,7 @@ class MCAsmInfo {
603591
604592 // Accessors.
605593
606- bool hasMachoZeroFillDirective () const { return HasMachoZeroFillDirective; }
607- bool hasMachoTBSSDirective () const { return HasMachoTBSSDirective; }
594+ bool isMachO () const { return HasSubsectionsViaSymbols; }
608595 bool hasCOFFAssociativeComdats () const { return HasCOFFAssociativeComdats; }
609596 bool hasCOFFComdatConstants () const { return HasCOFFComdatConstants; }
610597 bool hasVisibilityOnlyWithLinkage () const {
@@ -730,7 +717,6 @@ class MCAsmInfo {
730717 bool hasAltEntry () const { return HasAltEntry; }
731718 const char *getWeakDirective () const { return WeakDirective; }
732719 const char *getWeakRefDirective () const { return WeakRefDirective; }
733- bool hasWeakDefDirective () const { return HasWeakDefDirective; }
734720
735721 bool hasWeakDefCanBeHiddenDirective () const {
736722 return HasWeakDefCanBeHiddenDirective;
0 commit comments