-// Emit initial Dwarf sections with a label at the start of each one.
-void DwarfDebug::emitSectionLabels() {
- const TargetLoweringObjectFile &TLOF = Asm->getObjFileLowering();
-
- // Dwarf sections base addresses.
- emitSectionSym(Asm, TLOF.getDwarfInfoSection());
- if (useSplitDwarf()) {
- emitSectionSym(Asm, TLOF.getDwarfInfoDWOSection());
- emitSectionSym(Asm, TLOF.getDwarfTypesDWOSection());
- }
- emitSectionSym(Asm, TLOF.getDwarfAbbrevSection());
- if (useSplitDwarf())
- emitSectionSym(Asm, TLOF.getDwarfAbbrevDWOSection());
-
- emitSectionSym(Asm, TLOF.getDwarfLineSection());
- emitSectionSym(Asm, TLOF.getDwarfStrSection());
- if (useSplitDwarf()) {
- emitSectionSym(Asm, TLOF.getDwarfStrDWOSection());
- emitSectionSym(Asm, TLOF.getDwarfAddrSection());
- emitSectionSym(Asm, TLOF.getDwarfLocDWOSection());
- } else
- emitSectionSym(Asm, TLOF.getDwarfLocSection());
- emitSectionSym(Asm, TLOF.getDwarfRangesSection());
-}
-