summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2014-09-07 17:31:42 +0000
committerDavid Blaikie <dblaikie@gmail.com>2014-09-07 17:31:42 +0000
commitc42f9ac01c3346a0fb9484db62bd4f3c1e020631 (patch)
treebe9a43b0d0a0d414e53264e1470eeb3c2ba43fa6 /llvm/lib/CodeGen
parent34cd2fa339b8ddca105b2062bb44589902573c7b (diff)
downloadbcm5719-llvm-c42f9ac01c3346a0fb9484db62bd4f3c1e020631.tar.gz
bcm5719-llvm-c42f9ac01c3346a0fb9484db62bd4f3c1e020631.zip
DebugInfo: Do not use DW_FORM_GNU_addr_index in skeleton CUs, GDB 7.8 errors on this.
It's probably not a huge deal to not do this - if we could, maybe the address could be reused by a subprogram low_pc and avoid an extra relocation, but it's just one per CU at best. llvm-svn: 217338
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/DwarfUnit.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfUnit.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfUnit.cpp
index a67eb762e84..c995e8bd244 100644
--- a/llvm/lib/CodeGen/AsmPrinter/DwarfUnit.cpp
+++ b/llvm/lib/CodeGen/AsmPrinter/DwarfUnit.cpp
@@ -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)
OpenPOWER on IntegriCloud