Skip to content

Commit 47c9182

Browse files
MaskRaymahesh-attarde
authored andcommitted
MC: Replace MCSection's SV_MachO check with MCContext::IsMachO
1 parent 9d7558a commit 47c9182

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/lib/MC/MCAsmStreamer.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1105,7 +1105,7 @@ void MCAsmStreamer::emitZerofill(MCSection *Section, MCSymbol *Symbol,
11051105
// Note: a .zerofill directive does not switch sections.
11061106
OS << ".zerofill ";
11071107

1108-
assert(Section->getVariant() == MCSection::SV_MachO &&
1108+
assert(getContext().getObjectFileType() == MCContext::IsMachO &&
11091109
".zerofill is a Mach-O specific directive");
11101110
// This is a mach-o specific directive.
11111111

@@ -1130,7 +1130,7 @@ void MCAsmStreamer::emitTBSSSymbol(MCSection *Section, MCSymbol *Symbol,
11301130

11311131
// Instead of using the Section we'll just use the shortcut.
11321132

1133-
assert(Section->getVariant() == MCSection::SV_MachO &&
1133+
assert(getContext().getObjectFileType() == MCContext::IsMachO &&
11341134
".zerofill is a Mach-O specific directive");
11351135
// This is a mach-o specific directive and section.
11361136

0 commit comments

Comments
 (0)