From: Eric Christopher Date: Mon, 26 Aug 2013 23:24:31 +0000 (+0000) Subject: Only emit the section sym if we're emitting the section. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=978046bd070fbd3b9359922611b3fd5d3fd7ab96;p=oota-llvm.git Only emit the section sym if we're emitting the section. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@189288 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/lib/CodeGen/AsmPrinter/DwarfDebug.cpp index 99ca037ec28..c523972ac3c 100644 --- a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp +++ b/lib/CodeGen/AsmPrinter/DwarfDebug.cpp @@ -1929,7 +1929,8 @@ void DwarfDebug::emitSectionLabels() { emitSectionSym(Asm, TLOF.getDwarfLocSection()); if (HasDwarfPubNames) emitSectionSym(Asm, TLOF.getDwarfPubNamesSection()); - emitSectionSym(Asm, TLOF.getDwarfPubTypesSection()); + if (useDarwinGDBCompat()) + emitSectionSym(Asm, TLOF.getDwarfPubTypesSection()); DwarfStrSectionSym = emitSectionSym(Asm, TLOF.getDwarfStrSection(), "info_string"); if (useSplitDwarf()) {