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 Remove \brief commands from doxygen comments. 2018-05-01 15:54:18 +00:00
MCParser [TableGen][AsmMatcherEmitter] Allow tied operands of different classes in aliases. 2018-06-18 13:39:29 +00:00
ConstantPools.h [MC] Fix constant pools with DenseMap sentinel values 2017-05-30 09:37:11 +00:00
LaneBitmask.h Constexprify LaneBitmask factory methods. 2017-12-18 13:20:26 +00:00
MachineLocation.h Remove the unused Offset field from MachineLocation (NFC) 2017-08-02 17:07:38 +00:00
MCAsmBackend.h [MC] Pass MCSubtargetInfo to fixupNeedsRelaxation and applyFixup 2018-06-06 09:40:06 +00:00
MCAsmInfo.h [mingw] Fix GCC ABI compatibility for comdat things 2018-06-21 20:27:38 +00:00
MCAsmInfoCOFF.h [MC] Fix some Clang-tidy modernize and Include What You Use warnings; other minor fixes (NFC). 2017-02-11 00:27:28 +00:00
MCAsmInfoDarwin.h [MC] Fix some Clang-tidy modernize and Include What You Use warnings; other minor fixes (NFC). 2017-02-11 00:27:28 +00:00
MCAsmInfoELF.h [MC] Fix some Clang-tidy modernize and Include What You Use warnings; other minor fixes (NFC). 2017-02-11 00:27:28 +00:00
MCAsmInfoWasm.h [WebAssembly] Add skeleton MC support for the Wasm container format 2017-02-22 01:23:18 +00:00
MCAsmLayout.h Remove \brief commands from doxygen comments. 2018-05-01 15:54:18 +00:00
MCAsmMacro.h MC: fix layering violation introduced in r325139. 2018-03-20 17:07:25 +00:00
MCAssembler.h [MC] Move bundling and MCSubtargetInfo to MCEncodedFragment [NFC] 2018-06-15 09:48:18 +00:00
MCCodeEmitter.h [MC] Fix some Clang-tidy modernize and Include What You Use warnings; other minor fixes (NFC). 2017-02-08 22:23:19 +00:00
MCCodePadder.h Remove MachineLoopInfo dependency from AsmPrinter. 2018-04-09 00:54:47 +00:00
MCCodeView.h Remove \brief commands from doxygen comments. 2018-05-01 15:54:18 +00:00
MCContext.h [DWARFv5] Tolerate files not all having an MD5 checksum. 2018-06-14 13:38:20 +00:00
MCDirectives.h
MCDwarf.h [DWARFv5] Allow ".loc 0" to refer to the root file. 2018-06-22 14:16:11 +00:00
MCELFObjectWriter.h MC: Introduce an ELF dwo object writer and teach llvm-mc about it. 2018-05-21 19:44:54 +00:00
MCELFStreamer.h [MC] Error on a .zerofill directive in a non-virtual section 2018-07-02 17:29:43 +00:00
MCExpr.h [PowerPC] Add support for high and higha symbol modifiers on tls modifers. 2018-06-15 19:47:16 +00:00
MCFixedLenDisassembler.h
MCFixup.h [RISCV] Add symbol diff relocation support for RISC-V 2018-05-23 12:36:18 +00:00
MCFixupKindInfo.h Remove \brief commands from doxygen comments. 2018-05-01 15:54:18 +00:00
MCFragment.h [MC] Move bundling and MCSubtargetInfo to MCEncodedFragment [NFC] 2018-06-15 09:48:18 +00:00
MCInst.h Remove \brief commands from doxygen comments. 2018-05-01 15:54:18 +00:00
MCInstBuilder.h Remove \brief commands from doxygen comments. 2018-05-01 15:54:18 +00:00
MCInstPrinter.h Cleanup. NFC 2018-06-10 04:53:14 +00:00
MCInstrAnalysis.h [llvm-mca][X86] Teach how to identify register writes that implicitly clear the upper portion of a super-register. 2018-06-20 10:08:11 +00:00
MCInstrDesc.h [X86][MIPS][ARM] New machine instruction property 'isMoveReg' 2018-05-23 15:28:28 +00:00
MCInstrInfo.h Remove \brief commands from doxygen comments. 2018-05-01 15:54:18 +00:00
MCInstrItineraries.h Remove \brief commands from doxygen comments. 2018-05-01 15:54:18 +00:00
MCLabel.h Remove \brief commands from doxygen comments. 2018-05-01 15:54:18 +00:00
MCLinkerOptimizationHint.h [MC] Fix some Clang-tidy modernize-use-using warnings; other minor fixes (NFC). 2017-04-26 22:31:39 +00:00
MCMachObjectWriter.h MC: Separate creating a generic object writer from creating a target object writer. NFCI. 2018-05-21 19:20:29 +00:00
MCObjectFileInfo.h Recommit r335333 "[MC] - Add .stack_size sections into groups and link them with .text" 2018-06-22 10:53:47 +00:00
MCObjectStreamer.h Revert "[MC] Factor MCObjectStreamer::addFragmentAtoms out of MachO streamer." 2018-06-14 17:11:19 +00:00
MCObjectWriter.h MC: Separate creating a generic object writer from creating a target object writer. NFCI. 2018-05-21 19:20:29 +00:00
MCRegisterInfo.h Remove \brief commands from doxygen comments. 2018-05-01 15:54:18 +00:00
MCSchedule.h [CodeGen] assume max/default throughput for unspecified instructions 2018-06-05 23:34:45 +00:00
MCSection.h Remove \brief commands from doxygen comments. 2018-05-01 15:54:18 +00:00
MCSectionCOFF.h [MC] Fix some Clang-tidy modernize and Include What You Use warnings; other minor fixes (NFC). 2017-02-10 01:33:54 +00:00
MCSectionELF.h Fix asm printing of associated sections. 2017-03-14 19:28:51 +00:00
MCSectionMachO.h Move Object format code to lib/BinaryFormat. 2017-06-07 03:48:56 +00:00
MCSectionWasm.h [WebAssembly] Add first claass symbol table to wasm objects 2018-02-23 05:08:34 +00:00
MCStreamer.h [MC] Error on a .zerofill directive in a non-virtual section 2018-07-02 17:29:43 +00:00
MCSubtargetInfo.h [RFC][Patch 2/3] Add a MCSubtargetInfo hook to resolve variant scheduling classes. 2018-05-25 16:02:43 +00:00
MCSymbol.h Remove \brief commands from doxygen comments. 2018-05-01 15:54:18 +00:00
MCSymbolCOFF.h [MC] Fix some Clang-tidy modernize and Include What You Use warnings; other minor fixes (NFC). 2017-02-10 01:33:54 +00:00
MCSymbolELF.h
MCSymbolMachO.h Remove \brief commands from doxygen comments. 2018-05-01 15:54:18 +00:00
MCSymbolWasm.h [WebAssembly] MC: Improve debug output 2018-04-30 19:40:57 +00:00
MCTargetOptions.h [WebAssembly] Add exception handling option and feature 2018-02-24 00:40:50 +00:00
MCTargetOptionsCommandFlags.inc Rename *CommandFlags.def to *CommandFlags.inc 2018-04-11 18:49:37 +00:00
MCValue.h Remove \brief commands from doxygen comments. 2018-05-01 15:54:18 +00:00
MCWasmObjectWriter.h MC: Separate creating a generic object writer from creating a target object writer. NFCI. 2018-05-21 19:20:29 +00:00
MCWasmStreamer.h [MC] Error on a .zerofill directive in a non-virtual section 2018-07-02 17:29:43 +00:00
MCWin64EH.h Revert r283690, "MC: Remove unused entities." 2016-10-10 22:49:37 +00:00
MCWinCOFFObjectWriter.h MC: Separate creating a generic object writer from creating a target object writer. NFCI. 2018-05-21 19:20:29 +00:00
MCWinCOFFStreamer.h [MC] Error on a .zerofill directive in a non-virtual section 2018-07-02 17:29:43 +00:00
MCWinEH.h Revert r283690, "MC: Remove unused entities." 2016-10-10 22:49:37 +00:00
SectionKind.h [ARM] Implement execute-only support in CodeGen 2016-12-15 07:59:08 +00:00
StringTableBuilder.h Remove \brief commands from doxygen comments. 2018-05-01 15:54:18 +00:00
SubtargetFeature.h Subtarget support for parameterized register class information 2017-09-14 20:44:20 +00:00