aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/CodeGen/AsmPrinter/DwarfDebug.cpp12
-rw-r--r--lib/CodeGen/AsmPrinter/DwarfDebug.h2
2 files changed, 4 insertions, 10 deletions
diff --git a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
index 17ffe8fad9..977ab1210d 100644
--- a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
+++ b/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
@@ -305,12 +305,8 @@ DwarfDebug::DwarfDebug(AsmPrinter *A)
CurrentFnDbgScope(0), DebugTimer(0) {
NextStringPoolNumber = 0;
- DwarfFrameSectionSym = 0;
- DwarfInfoSectionSym = 0;
- DwarfAbbrevSectionSym = 0;
- DwarfStrSectionSym = 0;
- TextSectionSym = 0;
- DataSectionSym = 0;
+ DwarfFrameSectionSym = DwarfInfoSectionSym = DwarfAbbrevSectionSym = 0;
+ DwarfStrSectionSym = TextSectionSym = 0;
if (TimePassesIsEnabled)
DebugTimer = new Timer("Dwarf Debug Writer");
@@ -2485,9 +2481,7 @@ void DwarfDebug::EmitSectionLabels() {
EmitSectionSym(Asm, TLOF.getDwarfRangesSection());
TextSectionSym = EmitSectionSym(Asm, TLOF.getTextSection(), "text_begin");
-
- // This is subtly used by the ocaml GC stuff.
- DataSectionSym = EmitSectionSym(Asm, TLOF.getDataSection(), "data_begin");
+ EmitSectionSym(Asm, TLOF.getDataSection());
}
/// emitDIE - Recusively Emits a debug information entry.
diff --git a/lib/CodeGen/AsmPrinter/DwarfDebug.h b/lib/CodeGen/AsmPrinter/DwarfDebug.h
index 20bd6de957..4ca1fccaa7 100644
--- a/lib/CodeGen/AsmPrinter/DwarfDebug.h
+++ b/lib/CodeGen/AsmPrinter/DwarfDebug.h
@@ -210,7 +210,7 @@ class DwarfDebug : public DwarfPrinter {
// the beginning of each supported dwarf section. These are used to form
// section offsets and are created by EmitSectionLabels.
MCSymbol *DwarfFrameSectionSym, *DwarfInfoSectionSym, *DwarfAbbrevSectionSym;
- MCSymbol *DwarfStrSectionSym, *TextSectionSym, *DataSectionSym;
+ MCSymbol *DwarfStrSectionSym, *TextSectionSym;
private: