llvm-6502/include/llvm/MC
Rafael Espindola d80979b25d Don't declare all text sections at the start of the .s
The code this patch removes was there to make sure the text sections went
before the dwarf sections. That is necessary because MachO uses offsets
relative to the start of the file, so adding a section can change relaxations.

The dwarf sections were being printed at the start just to produce symbols
pointing at the start of those sections.

The underlying issue was fixed in r231898. The dwarf sections are now printed
when they are about to be used, which is after we printed the text sections.

To make sure we don't regress, the patch makes the MachO streamer assert
if CodeGen puts anything unexpected after the DWARF sections.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@232842 91177308-0d34-0410-b5e6-96231b3b80d8
2015-03-20 20:00:01 +00:00
..
MCParser Fix uses of reserved identifiers starting with an underscore followed by an uppercase letter 2015-03-16 18:06:57 +00:00
ConstantPools.h
MachineLocation.h
MCAsmBackend.h
MCAsmInfo.h [NVPTXAsmPrinter] do not print .align on function headers 2015-03-12 01:50:30 +00:00
MCAsmInfoCOFF.h
MCAsmInfoDarwin.h
MCAsmInfoELF.h
MCAsmLayout.h Fix uses of reserved identifiers starting with an underscore followed by an uppercase letter 2015-03-16 18:06:57 +00:00
MCAssembler.h Fix uses of reserved identifiers starting with an underscore followed by an uppercase letter 2015-03-16 18:06:57 +00:00
MCCodeEmitter.h
MCCodeGenInfo.h
MCContext.h Centralize the handling of unique ids for temporary labels. 2015-03-17 20:07:06 +00:00
MCDirectives.h
MCDisassembler.h
MCDwarf.h
MCELF.h
MCELFObjectWriter.h
MCELFStreamer.h
MCELFSymbolFlags.h
MCExpr.h Fix uses of reserved identifiers starting with an underscore followed by an uppercase letter 2015-03-16 18:06:57 +00:00
MCExternalSymbolizer.h
MCFixedLenDisassembler.h
MCFixup.h
MCFixupKindInfo.h
MCInst.h
MCInstBuilder.h
MCInstPrinter.h
MCInstrAnalysis.h
MCInstrDesc.h
MCInstrInfo.h
MCInstrItineraries.h
MCLabel.h
MCLinkerOptimizationHint.h
MCMachObjectWriter.h Fix uses of reserved identifiers starting with an underscore followed by an uppercase letter 2015-03-16 18:06:57 +00:00
MCMachOSymbolFlags.h
MCObjectFileInfo.h
MCObjectStreamer.h Don't declare all text sections at the start of the .s 2015-03-20 20:00:01 +00:00
MCObjectWriter.h Fix uses of reserved identifiers starting with an underscore followed by an uppercase letter 2015-03-16 18:06:57 +00:00
MCRegisterInfo.h
MCRelocationInfo.h
MCSchedule.h
MCSection.h
MCSectionCOFF.h
MCSectionELF.h
MCSectionMachO.h
MCStreamer.h Split the object streamer callback in one per file format. 2015-03-19 01:50:16 +00:00
MCSubtargetInfo.h
MCSymbol.h
MCSymbolizer.h
MCTargetAsmParser.h
MCTargetOptions.h
MCTargetOptionsCommandFlags.h
MCValue.h
MCWin64EH.h
MCWinCOFFObjectWriter.h
MCWinCOFFStreamer.h
MCWinEH.h
SectionKind.h
StringTableBuilder.h
SubtargetFeature.h
YAML.h