llvm-mirror/include/llvm/MC
Francis Visoiu Mistrih bb4cf24f14 [MC] Error on a .zerofill directive in a non-virtual section
On darwin, all virtual sections have zerofill type, and having a
.zerofill directive in a non-virtual section is not allowed. Instead of
asserting, show a nicer error.

In order to use the equivalent of .zerofill in a non-virtual section,
the usage of .zero of .space is required.

This patch replaces the assert with an error.

Differential Revision: https://reviews.llvm.org/D48517

llvm-svn: 336127
2018-07-02 17:29:43 +00:00
..
MCDisassembler
MCParser
ConstantPools.h
LaneBitmask.h
MachineLocation.h
MCAsmBackend.h
MCAsmInfo.h
MCAsmInfoCOFF.h
MCAsmInfoDarwin.h
MCAsmInfoELF.h
MCAsmInfoWasm.h
MCAsmLayout.h
MCAsmMacro.h
MCAssembler.h
MCCodeEmitter.h
MCCodePadder.h
MCCodeView.h
MCContext.h
MCDirectives.h
MCDwarf.h
MCELFObjectWriter.h
MCELFStreamer.h [MC] Error on a .zerofill directive in a non-virtual section 2018-07-02 17:29:43 +00:00
MCExpr.h
MCFixedLenDisassembler.h
MCFixup.h
MCFixupKindInfo.h
MCFragment.h
MCInst.h
MCInstBuilder.h
MCInstPrinter.h
MCInstrAnalysis.h
MCInstrDesc.h
MCInstrInfo.h
MCInstrItineraries.h
MCLabel.h
MCLinkerOptimizationHint.h
MCMachObjectWriter.h
MCObjectFileInfo.h
MCObjectStreamer.h
MCObjectWriter.h
MCRegisterInfo.h
MCSchedule.h
MCSection.h
MCSectionCOFF.h
MCSectionELF.h
MCSectionMachO.h
MCSectionWasm.h
MCStreamer.h [MC] Error on a .zerofill directive in a non-virtual section 2018-07-02 17:29:43 +00:00
MCSubtargetInfo.h
MCSymbol.h
MCSymbolCOFF.h
MCSymbolELF.h
MCSymbolMachO.h
MCSymbolWasm.h
MCTargetOptions.h
MCTargetOptionsCommandFlags.inc
MCValue.h
MCWasmObjectWriter.h
MCWasmStreamer.h [MC] Error on a .zerofill directive in a non-virtual section 2018-07-02 17:29:43 +00:00
MCWin64EH.h
MCWinCOFFObjectWriter.h
MCWinCOFFStreamer.h [MC] Error on a .zerofill directive in a non-virtual section 2018-07-02 17:29:43 +00:00
MCWinEH.h
SectionKind.h
StringTableBuilder.h
SubtargetFeature.h