DebugInfo: Do not use DW_FORM_GNU_addr_index in skeleton CUs, GDB 7.8 errors on this.
[oota-llvm.git] / lib / CodeGen / AsmPrinter / DwarfUnit.cpp
index a67eb762e8430132ede74ad68a9692999b77c08f..c995e8bd244174106ff5d65cb63be1f6fd7cf0c8 100644 (file)
@@ -288,7 +288,7 @@ void DwarfUnit::addSectionOffset(DIE &Die, dwarf::Attribute Attribute,
 void DwarfCompileUnit::addLabelAddress(DIE &Die, dwarf::Attribute Attribute,
                                        const MCSymbol *Label) {
 
-  if (!DD->useSplitDwarf())
+  if (!DD->useSplitDwarf() || !Skeleton)
     return addLocalLabelAddress(Die, Attribute, Label);
 
   if (Label)