mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 20:32:21 +00:00
Revert r107202. It is not adding any value.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@111870 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
1dfb4d31e0
commit
af608bd4fe
@ -388,7 +388,6 @@ DwarfDebug::DwarfDebug(AsmPrinter *A, Module *M)
|
|||||||
DwarfFrameSectionSym = DwarfInfoSectionSym = DwarfAbbrevSectionSym = 0;
|
DwarfFrameSectionSym = DwarfInfoSectionSym = DwarfAbbrevSectionSym = 0;
|
||||||
DwarfStrSectionSym = TextSectionSym = 0;
|
DwarfStrSectionSym = TextSectionSym = 0;
|
||||||
DwarfDebugRangeSectionSym = DwarfDebugLocSectionSym = 0;
|
DwarfDebugRangeSectionSym = DwarfDebugLocSectionSym = 0;
|
||||||
DwarfDebugLineSectionSym = CurrentLineSectionSym = 0;
|
|
||||||
FunctionBeginSym = FunctionEndSym = 0;
|
FunctionBeginSym = FunctionEndSym = 0;
|
||||||
DIEIntegerOne = new (DIEValueAllocator) DIEInteger(1);
|
DIEIntegerOne = new (DIEValueAllocator) DIEInteger(1);
|
||||||
{
|
{
|
||||||
@ -1808,9 +1807,8 @@ void DwarfDebug::constructCompileUnit(const MDNode *N) {
|
|||||||
// simplifies debug range entries.
|
// simplifies debug range entries.
|
||||||
addUInt(Die, dwarf::DW_AT_entry_pc, dwarf::DW_FORM_addr, 0);
|
addUInt(Die, dwarf::DW_AT_entry_pc, dwarf::DW_FORM_addr, 0);
|
||||||
// DW_AT_stmt_list is a offset of line number information for this
|
// DW_AT_stmt_list is a offset of line number information for this
|
||||||
// compile unit in debug_line section. This offset is calculated
|
// compile unit in debug_line section.
|
||||||
// during endMoudle().
|
addUInt(Die, dwarf::DW_AT_stmt_list, dwarf::DW_FORM_data4, 0);
|
||||||
addLabel(Die, dwarf::DW_AT_stmt_list, dwarf::DW_FORM_data4, 0);
|
|
||||||
|
|
||||||
if (!Dir.empty())
|
if (!Dir.empty())
|
||||||
addString(Die, dwarf::DW_AT_comp_dir, dwarf::DW_FORM_string, Dir);
|
addString(Die, dwarf::DW_AT_comp_dir, dwarf::DW_FORM_string, Dir);
|
||||||
@ -2137,15 +2135,15 @@ void DwarfDebug::endModule() {
|
|||||||
// Compute DIE offsets and sizes.
|
// Compute DIE offsets and sizes.
|
||||||
computeSizeAndOffsets();
|
computeSizeAndOffsets();
|
||||||
|
|
||||||
// Emit source line correspondence into a debug line section.
|
|
||||||
emitDebugLines();
|
|
||||||
|
|
||||||
// Emit all the DIEs into a debug info section
|
// Emit all the DIEs into a debug info section
|
||||||
emitDebugInfo();
|
emitDebugInfo();
|
||||||
|
|
||||||
// Corresponding abbreviations into a abbrev section.
|
// Corresponding abbreviations into a abbrev section.
|
||||||
emitAbbreviations();
|
emitAbbreviations();
|
||||||
|
|
||||||
|
// Emit source line correspondence into a debug line section.
|
||||||
|
emitDebugLines();
|
||||||
|
|
||||||
// Emit info into a debug pubnames section.
|
// Emit info into a debug pubnames section.
|
||||||
emitDebugPubNames();
|
emitDebugPubNames();
|
||||||
|
|
||||||
@ -3064,7 +3062,6 @@ void DwarfDebug::EmitSectionLabels() {
|
|||||||
if (const MCSection *MacroInfo = TLOF.getDwarfMacroInfoSection())
|
if (const MCSection *MacroInfo = TLOF.getDwarfMacroInfoSection())
|
||||||
EmitSectionSym(Asm, MacroInfo);
|
EmitSectionSym(Asm, MacroInfo);
|
||||||
|
|
||||||
DwarfDebugLineSectionSym =
|
|
||||||
EmitSectionSym(Asm, TLOF.getDwarfLineSection(), "section_line");
|
EmitSectionSym(Asm, TLOF.getDwarfLineSection(), "section_line");
|
||||||
EmitSectionSym(Asm, TLOF.getDwarfLocSection());
|
EmitSectionSym(Asm, TLOF.getDwarfLocSection());
|
||||||
EmitSectionSym(Asm, TLOF.getDwarfPubNamesSection());
|
EmitSectionSym(Asm, TLOF.getDwarfPubNamesSection());
|
||||||
@ -3128,11 +3125,6 @@ void DwarfDebug::emitDIE(DIE *Die) {
|
|||||||
4);
|
4);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case dwarf::DW_AT_stmt_list: {
|
|
||||||
Asm->EmitLabelDifference(CurrentLineSectionSym,
|
|
||||||
DwarfDebugLineSectionSym, 4);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
case dwarf::DW_AT_location: {
|
case dwarf::DW_AT_location: {
|
||||||
if (UseDotDebugLocEntry.count(Die) != 0) {
|
if (UseDotDebugLocEntry.count(Die) != 0) {
|
||||||
DIELabel *L = cast<DIELabel>(Values[i]);
|
DIELabel *L = cast<DIELabel>(Values[i]);
|
||||||
@ -3278,8 +3270,6 @@ void DwarfDebug::emitDebugLines() {
|
|||||||
Asm->getObjFileLowering().getDwarfLineSection());
|
Asm->getObjFileLowering().getDwarfLineSection());
|
||||||
|
|
||||||
// Construct the section header.
|
// Construct the section header.
|
||||||
CurrentLineSectionSym = Asm->GetTempSymbol("section_line_begin");
|
|
||||||
Asm->OutStreamer.EmitLabel(CurrentLineSectionSym);
|
|
||||||
Asm->OutStreamer.AddComment("Length of Source Line Info");
|
Asm->OutStreamer.AddComment("Length of Source Line Info");
|
||||||
Asm->EmitLabelDifference(Asm->GetTempSymbol("line_end"),
|
Asm->EmitLabelDifference(Asm->GetTempSymbol("line_end"),
|
||||||
Asm->GetTempSymbol("line_begin"), 4);
|
Asm->GetTempSymbol("line_begin"), 4);
|
||||||
|
@ -261,7 +261,6 @@ class DwarfDebug {
|
|||||||
MCSymbol *DwarfFrameSectionSym, *DwarfInfoSectionSym, *DwarfAbbrevSectionSym;
|
MCSymbol *DwarfFrameSectionSym, *DwarfInfoSectionSym, *DwarfAbbrevSectionSym;
|
||||||
MCSymbol *DwarfStrSectionSym, *TextSectionSym, *DwarfDebugRangeSectionSym;
|
MCSymbol *DwarfStrSectionSym, *TextSectionSym, *DwarfDebugRangeSectionSym;
|
||||||
MCSymbol *DwarfDebugLocSectionSym;
|
MCSymbol *DwarfDebugLocSectionSym;
|
||||||
MCSymbol *DwarfDebugLineSectionSym, *CurrentLineSectionSym;
|
|
||||||
MCSymbol *FunctionBeginSym, *FunctionEndSym;
|
MCSymbol *FunctionBeginSym, *FunctionEndSym;
|
||||||
|
|
||||||
DIEInteger *DIEIntegerOne;
|
DIEInteger *DIEIntegerOne;
|
||||||
|
Loading…
Reference in New Issue
Block a user