DebugInfo: Remove the empty macinfo section.
authorDavid Blaikie <dblaikie@gmail.com>
Fri, 21 Feb 2014 19:13:09 +0000 (19:13 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Fri, 21 Feb 2014 19:13:09 +0000 (19:13 +0000)
We were just emitting a label for this section for no real reason - this
caused us to emit the section even though we never put anything in it.

Not bothering with a test (though not adamantly anti-test) because it
seems somewhat arbitrary to test for the absence of this section anymore
than the absence of any other section.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@201876 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/AsmPrinter/DwarfDebug.cpp

index 9428fea7e1471cf4d30b4b5eecc538783f0f4110..05006b33bc3d9a77ac3de94a9a3d48837337e4b8 100644 (file)
@@ -1942,9 +1942,6 @@ void DwarfDebug::emitSectionLabels() {
         Asm, TLOF.getDwarfAbbrevDWOSection(), "section_abbrev_dwo");
   emitSectionSym(Asm, TLOF.getDwarfARangesSection());
 
-  if (const MCSection *MacroInfo = TLOF.getDwarfMacroInfoSection())
-    emitSectionSym(Asm, MacroInfo);
-
   DwarfLineSectionSym =
       emitSectionSym(Asm, TLOF.getDwarfLineSection(), "section_line");
   emitSectionSym(Asm, TLOF.getDwarfLocSection());