DebugInfo: Remove unused labels now that we just emit DW_AT_gnu_pubnames as a flag...
authorDavid Blaikie <dblaikie@gmail.com>
Tue, 11 Mar 2014 22:24:33 +0000 (22:24 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Tue, 11 Mar 2014 22:24:33 +0000 (22:24 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@203612 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/AsmPrinter/DwarfDebug.cpp

index 5c17417c51eac54c36bd55dff19a791197092270..f4eb787adbf9bf3a2f13602c0711c7ae8b72f863 100644 (file)
@@ -2213,10 +2213,6 @@ void DwarfDebug::emitDebugPubNames(bool GnuStyle) {
     // Start the dwarf pubnames section.
     Asm->OutStreamer.SwitchSection(PSec);
 
-    // Emit a label so we can reference the beginning of this pubname section.
-    if (GnuStyle)
-      Asm->OutStreamer.EmitLabel(Asm->GetTempSymbol("gnu_pubnames", ID));
-
     // Emit the header.
     Asm->OutStreamer.AddComment("Length of Public Names Info");
     MCSymbol *BeginLabel = Asm->GetTempSymbol("pubnames_begin", ID);
@@ -2274,10 +2270,6 @@ void DwarfDebug::emitDebugPubTypes(bool GnuStyle) {
     // Start the dwarf pubtypes section.
     Asm->OutStreamer.SwitchSection(PSec);
 
-    // Emit a label so we can reference the beginning of this pubtype section.
-    if (GnuStyle)
-      Asm->OutStreamer.EmitLabel(Asm->GetTempSymbol("gnu_pubtypes", ID));
-
     // Emit the header.
     Asm->OutStreamer.AddComment("Length of Public Types Info");
     MCSymbol *BeginLabel = Asm->GetTempSymbol("pubtypes_begin", ID);