Remove unnecessary addition to API. Replace with something much simpler.
authorEric Christopher <echristo@apple.com>
Mon, 7 Nov 2011 09:38:42 +0000 (09:38 +0000)
committerEric Christopher <echristo@apple.com>
Mon, 7 Nov 2011 09:38:42 +0000 (09:38 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143925 91177308-0d34-0410-b5e6-96231b3b80d8

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

index b7c8c6ee47c21ce5a0a55ca835e47bab94e58de9..84a28390aa0ffe422402945e9d4eda34b2e23ccb 100644 (file)
@@ -183,7 +183,7 @@ void DwarfAccelTable::EmitData(AsmPrinter *Asm, DwarfDebug *D) {
       Asm->OutStreamer.EmitLabel((*HI)->Sym);
       Asm->OutStreamer.AddComment((*HI)->Str);
       Asm->EmitSectionOffset(D->getStringPoolEntry((*HI)->Str),
-                             D->getDwarfStrSectionSym());
+                             D->getStringPool());
       Asm->OutStreamer.AddComment("Num DIEs");
       Asm->EmitInt32((*HI)->DIEOffsets.size());
       for (std::vector<uint32_t>::const_iterator
index 8acc8571ddc6c95c7a9658f32534eff06bb0e6fd..633f216416e87287de54362341f3dbcd6e261ea7 100644 (file)
@@ -165,14 +165,6 @@ MCSymbol *DwarfDebug::getStringPoolEntry(StringRef Str) {
   return Entry.first = Asm->GetTempSymbol("string", Entry.second);
 }
 
-MCSymbol *DwarfDebug::getDwarfStrSectionSym(void) {
-  if (DwarfStrSectionSym) return DwarfStrSectionSym;
-  DwarfStrSectionSym =
-    EmitSectionSym(Asm, Asm->getObjFileLowering().getDwarfStrSection(),
-                   "section_str");
-  return DwarfStrSectionSym;
-}
-
 /// assignAbbrevNumber - Define a unique number for the abbreviation.
 ///
 void DwarfDebug::assignAbbrevNumber(DIEAbbrev &Abbrev) {
index ce5e59ec286d08f2f0743e0dff64fa81f7ddbc55..174333e484a0379c3bb6bf28b93000902780c1bc 100644 (file)
@@ -528,10 +528,6 @@ public:
   /// getStringPoolEntry - returns an entry into the string pool with the given
   /// string text.
   MCSymbol *getStringPoolEntry(StringRef Str);
-
-  /// getDwarfStrSectionSym - returns the symbol that starts the dwarf string
-  /// section.
-  MCSymbol *getDwarfStrSectionSym();
 };
 } // End of namespace llvm