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 Remove MCStreamer include which isn't used here. NFC 2015-03-04 01:24:26 +00:00
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 Expand variables when evaluating absolute expressions. 2015-03-04 22:03:21 +00:00
MCInst.cpp
MCInstPrinter.cpp
MCInstrAnalysis.cpp
MCLabel.cpp
MCLinkerOptimizationHint.cpp This file should always have included MCAssembler and not MCStreamer. NFC 2015-03-04 01:24:24 +00:00
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 Add r228980 back. 2015-02-17 20:48:01 +00:00
MCSectionMachO.cpp Create symbols marking the start of a section earlier. 2015-03-10 22:00:25 +00:00
MCStreamer.cpp Print section start labels when first switching to the section. 2015-03-11 00:51:37 +00:00
MCSubtargetInfo.cpp Reverting r229831 due to multiple ARM/PPC/MIPS build-bot failures. 2015-02-19 11:38:11 +00:00
MCSymbol.cpp
MCSymbolizer.cpp
MCTargetOptions.cpp
MCValue.cpp
MCWin64EH.cpp
MCWinEH.cpp Remove MCStreamer.h include from MCContext.h and explictly include it where necessary. NFC 2015-03-04 01:24:11 +00:00
StringTableBuilder.cpp
SubtargetFeature.cpp Reverting r229831 due to multiple ARM/PPC/MIPS build-bot failures. 2015-02-19 11:38:11 +00:00
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