llvm-6502/lib/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
..
MCDisassembler
MCParser Add support for .ifnes psuedo-op. 2015-03-18 14:20:54 +00:00
CMakeLists.txt
ConstantPools.cpp
ELFObjectWriter.cpp Fix uses of reserved identifiers starting with an underscore followed by an uppercase letter 2015-03-16 18:06:57 +00:00
LLVMBuild.txt
MachObjectWriter.cpp
Makefile
MCAsmBackend.cpp
MCAsmInfo.cpp [NVPTXAsmPrinter] do not print .align on function headers 2015-03-12 01:50:30 +00:00
MCAsmInfoCOFF.cpp
MCAsmInfoDarwin.cpp
MCAsmInfoELF.cpp
MCAsmStreamer.cpp Remove many superfluous SmallString::str() calls. 2015-03-18 10:17:07 +00:00
MCAssembler.cpp Remove many superfluous SmallString::str() calls. 2015-03-18 10:17:07 +00:00
MCCodeEmitter.cpp
MCCodeGenInfo.cpp
MCContext.cpp Centralize the handling of unique ids for temporary labels. 2015-03-17 20:07:06 +00:00
MCDwarf.cpp Remove many superfluous SmallString::str() calls. 2015-03-18 10:17:07 +00:00
MCELF.cpp
MCELFObjectTargetWriter.cpp
MCELFStreamer.cpp Split the object streamer callback in one per file format. 2015-03-19 01:50:16 +00:00
MCExpr.cpp
MCInst.cpp
MCInstPrinter.cpp
MCInstrAnalysis.cpp
MCLabel.cpp
MCLinkerOptimizationHint.cpp
MCMachObjectTargetWriter.cpp
MCMachOStreamer.cpp Don't declare all text sections at the start of the .s 2015-03-20 20:00:01 +00:00
MCNullStreamer.cpp
MCObjectFileInfo.cpp Don't print labels that on ELF are never used. 2015-03-11 04:20:31 +00:00
MCObjectStreamer.cpp Don't declare all text sections at the start of the .s 2015-03-20 20:00:01 +00:00
MCObjectWriter.cpp
MCRegisterInfo.cpp
MCSection.cpp
MCSectionCOFF.cpp
MCSectionELF.cpp
MCSectionMachO.cpp
MCStreamer.cpp Print section start labels when first switching to the section. 2015-03-11 00:51:37 +00:00
MCSubtargetInfo.cpp
MCSymbol.cpp
MCSymbolizer.cpp
MCTargetOptions.cpp
MCValue.cpp
MCWin64EH.cpp
MCWinEH.cpp
StringTableBuilder.cpp
SubtargetFeature.cpp
WinCOFFObjectWriter.cpp
WinCOFFStreamer.cpp Fix uses of reserved identifiers starting with an underscore followed by an uppercase letter 2015-03-16 18:06:57 +00:00
YAML.cpp