mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
Remove effectively dead code.
Switching back and forth between sections does nothing (other than producing larger .s files). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@231790 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
36b589fd8a
commit
71653f3324
@ -249,11 +249,8 @@ DwarfDebug::~DwarfDebug() { }
|
||||
// Switch to the specified MCSection and emit an assembler
|
||||
// temporary label to it if SymbolStem is specified.
|
||||
static MCSymbol *emitSectionSym(AsmPrinter *Asm, const MCSection *Section,
|
||||
const char *SymbolStem = nullptr) {
|
||||
const char *SymbolStem) {
|
||||
Asm->OutStreamer.SwitchSection(Section);
|
||||
if (!SymbolStem)
|
||||
return nullptr;
|
||||
|
||||
MCSymbol *TmpSym = Asm->GetTempSymbol(SymbolStem);
|
||||
Asm->OutStreamer.EmitLabel(TmpSym);
|
||||
return TmpSym;
|
||||
@ -1320,21 +1317,9 @@ void DwarfDebug::emitSectionLabels() {
|
||||
if (useSplitDwarf())
|
||||
DwarfAbbrevDWOSectionSym = emitSectionSym(
|
||||
Asm, TLOF.getDwarfAbbrevDWOSection(), "section_abbrev_dwo");
|
||||
if (GenerateARangeSection)
|
||||
emitSectionSym(Asm, TLOF.getDwarfARangesSection());
|
||||
|
||||
DwarfLineSectionSym =
|
||||
emitSectionSym(Asm, TLOF.getDwarfLineSection(), "section_line");
|
||||
if (GenerateGnuPubSections) {
|
||||
DwarfGnuPubNamesSectionSym =
|
||||
emitSectionSym(Asm, TLOF.getDwarfGnuPubNamesSection());
|
||||
DwarfGnuPubTypesSectionSym =
|
||||
emitSectionSym(Asm, TLOF.getDwarfGnuPubTypesSection());
|
||||
} else if (HasDwarfPubSections) {
|
||||
emitSectionSym(Asm, TLOF.getDwarfPubNamesSection());
|
||||
emitSectionSym(Asm, TLOF.getDwarfPubTypesSection());
|
||||
}
|
||||
|
||||
DwarfStrSectionSym =
|
||||
emitSectionSym(Asm, TLOF.getDwarfStrSection(), "info_string");
|
||||
if (useSplitDwarf()) {
|
||||
|
@ -252,7 +252,6 @@ class DwarfDebug : public AsmPrinterHandler {
|
||||
MCSymbol *DwarfInfoDWOSectionSym, *DwarfAbbrevDWOSectionSym;
|
||||
MCSymbol *DwarfTypesDWOSectionSym;
|
||||
MCSymbol *DwarfStrDWOSectionSym;
|
||||
MCSymbol *DwarfGnuPubNamesSectionSym, *DwarfGnuPubTypesSectionSym;
|
||||
|
||||
// As an optimization, there is no need to emit an entry in the directory
|
||||
// table for the same directory as DW_AT_comp_dir.
|
||||
|
Loading…
Reference in New Issue
Block a user