Only emit the section sym if we're emitting the section.
authorEric Christopher <echristo@gmail.com>
Mon, 26 Aug 2013 23:24:31 +0000 (23:24 +0000)
committerEric Christopher <echristo@gmail.com>
Mon, 26 Aug 2013 23:24:31 +0000 (23:24 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@189288 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/AsmPrinter/DwarfDebug.cpp

index 99ca037ec28bfda2401203d98b3e47283124f886..c523972ac3c2d7e9d0363272c60b89973c48d575 100644 (file)
@@ -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()) {