/// getDataCommonSection - Return the "__DATA,__common" section we put
/// zerofill (aka bss) data into.
- const MCSection *getDataCommonSection() const {
- return DataCommonSection;
+ bool isDataCommonSection(const MCSection *Section) const {
+ return Section == DataCommonSection;
}
/// getLazySymbolPointerSection - Return the section corresponding to
// emission.
if (GVKind.isBSS() && MAI->hasMachoZeroFillDirective()) {
TargetLoweringObjectFileMachO &TLOFMacho =
- static_cast<TargetLoweringObjectFileMachO &>(getObjFileLowering());
- if (TheSection == TLOFMacho.getDataCommonSection()) {
+ static_cast<TargetLoweringObjectFileMachO &>(getObjFileLowering());
+ if (TLOFMacho.isDataCommonSection(TheSection)) {
// .globl _foo
OutStreamer.EmitSymbolAttribute(GVarSym, MCStreamer::Global);
// .zerofill __DATA, __common, _foo, 400, 5
// emission.
if (GVKind.isBSS() && MAI->hasMachoZeroFillDirective()) {
TargetLoweringObjectFileMachO &TLOFMacho =
- static_cast<TargetLoweringObjectFileMachO &>(getObjFileLowering());
- if (TheSection == TLOFMacho.getDataCommonSection()) {
+ static_cast<TargetLoweringObjectFileMachO &>(getObjFileLowering());
+ if (TLOFMacho.isDataCommonSection(TheSection)) {
// .globl _foo
OutStreamer.EmitSymbolAttribute(GVarSym, MCStreamer::Global);
// .zerofill __DATA, __common, _foo, 400, 5
// emission.
if (GVKind.isBSS() && MAI->hasMachoZeroFillDirective()) {
TargetLoweringObjectFileMachO &TLOFMacho =
- static_cast<TargetLoweringObjectFileMachO &>(getObjFileLowering());
- if (TheSection == TLOFMacho.getDataCommonSection()) {
+ static_cast<TargetLoweringObjectFileMachO &>(getObjFileLowering());
+ if (TLOFMacho.isDataCommonSection(TheSection)) {
// .globl _foo
OutStreamer.EmitSymbolAttribute(GVarSym, MCStreamer::Global);
// .zerofill __DATA, __common, _foo, 400, 5