llvm-6502/lib/MC
Saleem Abdulrasool a51acc7631 MC: prevent early DCE of empty sections
Prevent the early elimination of sections in the object writer.  There may be
references to the section itself by other symbols, which may potentially not be
possible to resolve.  ML (Visual Studio's Macro Assembler) also seems to retain
empty sections.

The elimination of symbols and sections which are unused should really occur at
the link phase.  This will not cause any change in the resulting binary, simply
in the generated object files.

The adjustments to the other unit tests account for the fluctuating section
index caused by the appearance of sections which were previously discarded.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@210373 91177308-0d34-0410-b5e6-96231b3b80d8
2014-06-06 21:40:16 +00:00
..
MCDisassembler
MCParser Fix a few issues with comdat handling on COFF. 2014-06-06 19:26:12 +00:00
CMakeLists.txt
ELFObjectWriter.cpp
LLVMBuild.txt
MachObjectWriter.cpp MachO: support N_INDR aliases in assembly files. 2014-05-30 13:22:59 +00:00
Makefile
MCAsmBackend.cpp
MCAsmInfo.cpp
MCAsmInfoCOFF.cpp
MCAsmInfoDarwin.cpp MachO: actually set linker-private prefix at MC level. 2014-03-29 07:33:24 +00:00
MCAsmInfoELF.cpp
MCAsmStreamer.cpp Move EmitDwarfAdvanceLineAddr and EmitDwarfAdvanceFrameAddr to the obj streamer. 2014-05-12 14:43:25 +00:00
MCAssembler.cpp
MCAtom.cpp
MCCodeEmitter.cpp
MCCodeGenInfo.cpp
MCContext.cpp Fix a few issues with comdat handling on COFF. 2014-06-06 19:26:12 +00:00
MCDisassembler.cpp
MCDwarf.cpp Fix hardcoded slash to native path seperator which was exposed from llvm::sys::path. 2014-05-16 13:16:30 +00:00
MCELF.cpp
MCELFObjectTargetWriter.cpp
MCELFStreamer.cpp Remove an always true argument. 2014-05-12 13:30:10 +00:00
MCExpr.cpp [mips][mips64r6] Add Relocations R_MIPS_PCHI16, R_MIPS_PCLO16 2014-05-27 14:58:51 +00:00
MCExternalSymbolizer.cpp
MCFunction.cpp
MCInst.cpp
MCInstPrinter.cpp
MCInstrAnalysis.cpp
MCLabel.cpp
MCLinkerOptimizationHint.cpp
MCMachObjectTargetWriter.cpp
MCMachOStreamer.cpp Remove an always true argument. 2014-05-12 13:30:10 +00:00
MCModule.cpp
MCModuleYAML.cpp
MCNullStreamer.cpp Move EmitDwarfAdvanceLineAddr and EmitDwarfAdvanceFrameAddr to the obj streamer. 2014-05-12 14:43:25 +00:00
MCObjectDisassembler.cpp [Modules] Make Support/Debug.h modular. This requires it to not change 2014-04-21 22:55:11 +00:00
MCObjectFileInfo.cpp Fix MIPS exception personality encoding. 2014-05-30 16:48:56 +00:00
MCObjectStreamer.cpp Move EH/Debug frame handling to the object streamer. 2014-05-12 14:02:44 +00:00
MCObjectSymbolizer.cpp
MCObjectWriter.cpp
MCRegisterInfo.cpp
MCRelocationInfo.cpp
MCSection.cpp
MCSectionCOFF.cpp Fix a few issues with comdat handling on COFF. 2014-06-06 19:26:12 +00:00
MCSectionELF.cpp
MCSectionMachO.cpp
MCStreamer.cpp Move EH/Debug frame handling to the object streamer. 2014-05-12 14:02:44 +00:00
MCSubtargetInfo.cpp ArrayRef-ize the Feature and Processor tables for SubtargetFeatures. 2014-05-06 20:23:04 +00:00
MCSymbol.cpp
MCSymbolizer.cpp
MCTargetOptions.cpp Move the verbose asm option to be part of the options struct and 2014-05-20 23:59:50 +00:00
MCValue.cpp
MCWin64EH.cpp
SubtargetFeature.cpp Make the split function use StringRef::split. 2014-05-13 19:55:17 +00:00
WinCOFFObjectWriter.cpp MC: prevent early DCE of empty sections 2014-06-06 21:40:16 +00:00
WinCOFFStreamer.cpp MC: formalise some assertions into proper errors 2014-05-22 02:18:10 +00:00