I was wrong, ocaml isn't referencing 'Ldata_begin', so remove it.
authorChris Lattner <sabre@nondot.org>
Sun, 4 Apr 2010 23:10:38 +0000 (23:10 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 4 Apr 2010 23:10:38 +0000 (23:10 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100365 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/AsmPrinter/DwarfDebug.cpp
lib/CodeGen/AsmPrinter/DwarfDebug.h

index 17ffe8fad977308e761d96ddc555b3a249913836..977ab1210d5c685f736245c5117ebe3534818b38 100644 (file)
@@ -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.
index 20bd6de9571925e94e7773d4b086237475753478..4ca1fccaa7cb988402dfd1a6331fcdd81e25864f 100644 (file)
@@ -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: