@@ -85,14 +85,6 @@ class MCAsmInfo {
85
85
// / Default is false.
86
86
bool HasSubsectionsViaSymbols = false ;
87
87
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
-
96
88
// / True if this is a non-GNU COFF target. The COFF port of the GNU linker
97
89
// / doesn't handle associative comdats in the way that we would like to use
98
90
// / them.
@@ -401,10 +393,6 @@ class MCAsmInfo {
401
393
// / undefined symbol. Defaults to nullptr.
402
394
const char *WeakRefDirective = nullptr ;
403
395
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
-
408
396
// / True if we have a directive to declare a global as being a weak defined
409
397
// / symbol that can be hidden (unexported). Defaults to false.
410
398
bool HasWeakDefCanBeHiddenDirective = false ;
@@ -603,8 +591,7 @@ class MCAsmInfo {
603
591
604
592
// Accessors.
605
593
606
- bool hasMachoZeroFillDirective () const { return HasMachoZeroFillDirective; }
607
- bool hasMachoTBSSDirective () const { return HasMachoTBSSDirective; }
594
+ bool isMachO () const { return HasSubsectionsViaSymbols; }
608
595
bool hasCOFFAssociativeComdats () const { return HasCOFFAssociativeComdats; }
609
596
bool hasCOFFComdatConstants () const { return HasCOFFComdatConstants; }
610
597
bool hasVisibilityOnlyWithLinkage () const {
@@ -730,7 +717,6 @@ class MCAsmInfo {
730
717
bool hasAltEntry () const { return HasAltEntry; }
731
718
const char *getWeakDirective () const { return WeakDirective; }
732
719
const char *getWeakRefDirective () const { return WeakRefDirective; }
733
- bool hasWeakDefDirective () const { return HasWeakDefDirective; }
734
720
735
721
bool hasWeakDefCanBeHiddenDirective () const {
736
722
return HasWeakDefCanBeHiddenDirective;
0 commit comments