[llvm-commits] [llvm] r143925 - in /llvm/trunk/lib/CodeGen/AsmPrinter: DwarfAccelTable.cpp DwarfDebug.cpp DwarfDebug.h

Eric Christopher echristo at apple.com
Mon Nov 7 01:38:43 PST 2011


Author: echristo
Date: Mon Nov  7 03:38:42 2011
New Revision: 143925

URL: http://llvm.org/viewvc/llvm-project?rev=143925&view=rev
Log:
Remove unnecessary addition to API. Replace with something much simpler.

Modified:
    llvm/trunk/lib/CodeGen/AsmPrinter/DwarfAccelTable.cpp
    llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
    llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.h

Modified: llvm/trunk/lib/CodeGen/AsmPrinter/DwarfAccelTable.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/AsmPrinter/DwarfAccelTable.cpp?rev=143925&r1=143924&r2=143925&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/AsmPrinter/DwarfAccelTable.cpp (original)
+++ llvm/trunk/lib/CodeGen/AsmPrinter/DwarfAccelTable.cpp Mon Nov  7 03:38:42 2011
@@ -183,7 +183,7 @@
       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

Modified: llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp?rev=143925&r1=143924&r2=143925&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp (original)
+++ llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp Mon Nov  7 03:38:42 2011
@@ -165,14 +165,6 @@
   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) {

Modified: llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.h?rev=143925&r1=143924&r2=143925&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.h (original)
+++ llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.h Mon Nov  7 03:38:42 2011
@@ -528,10 +528,6 @@
   /// 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
 





More information about the llvm-commits mailing list