Remove the unused string section symbol parameter from DwarfFile::emitStrings
[oota-llvm.git] / lib / CodeGen / AsmPrinter / DwarfUnit.cpp
index bf7860803c3a1ea1b1192ba0534c8536dc0b94c3..4206ffd5535eb14bf6a4217f9b8e30c21594561d 100644 (file)
@@ -225,10 +225,8 @@ void DwarfUnit::addLocalString(DIE &Die, dwarf::Attribute Attribute,
   DIEValue *Value;
   if (Asm->MAI->doesDwarfUseRelocationsAcrossSections())
     Value = new (DIEValueAllocator) DIELabel(Symb);
-  else {
-    MCSymbol *StringPool = DU->getStringPool().getSectionSymbol();
-    Value = new (DIEValueAllocator) DIEDelta(Symb, StringPool);
-  }
+  else
+    Value = new (DIEValueAllocator) DIEDelta(Symb, DD->getDebugStrSym());
   DIEValue *Str = new (DIEValueAllocator) DIEString(Value, String);
   Die.addValue(Attribute, dwarf::DW_FORM_strp, Str);
 }