Remove DwarfUnit::LabelEnd in favor of computing the length of the section directly
[oota-llvm.git] / lib / CodeGen / AsmPrinter / DwarfUnit.h
index 63fb79f0170b191676559d1284fa2c8f005b90ce..feb7ffa125a674c0d54d066b9fef8917c39cf067 100644 (file)
@@ -132,9 +132,6 @@ protected:
   /// The start of the unit within its section.
   MCSymbol *LabelBegin;
 
-  /// The end of the unit within its section.
-  MCSymbol *LabelEnd;
-
   DwarfUnit(unsigned UID, dwarf::Tag, DICompileUnit CU, AsmPrinter *A,
             DwarfDebug *DW, DwarfFile *DWU);
 
@@ -152,11 +149,6 @@ public:
     return LabelBegin;
   }
 
-  MCSymbol *getLabelEnd() const {
-    assert(Section);
-    return LabelEnd;
-  }
-
   // Accessors.
   unsigned getUniqueID() const { return UniqueID; }
   uint16_t getLanguage() const { return CUNode.getLanguage(); }