[llvm] r189288 - Only emit the section sym if we're emitting the section.

Eric Christopher echristo at gmail.com
Mon Aug 26 16:24:32 PDT 2013


Author: echristo
Date: Mon Aug 26 18:24:31 2013
New Revision: 189288

URL: http://llvm.org/viewvc/llvm-project?rev=189288&view=rev
Log:
Only emit the section sym if we're emitting the section.

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

Modified: llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp?rev=189288&r1=189287&r2=189288&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp (original)
+++ llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp Mon Aug 26 18:24:31 2013
@@ -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()) {





More information about the llvm-commits mailing list