summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2014-03-07 22:00:56 +0000
committerDavid Blaikie <dblaikie@gmail.com>2014-03-07 22:00:56 +0000
commit555e79a304e02caafbd8c6969bbc04b9b8d8b599 (patch)
treed67069da2ec29a6a0850f6c541027074b45ef627 /llvm/lib
parent3e4ff7a92a7c3e835447943d50e1cc51a7b4dba6 (diff)
downloadbcm5719-llvm-555e79a304e02caafbd8c6969bbc04b9b8d8b599.tar.gz
bcm5719-llvm-555e79a304e02caafbd8c6969bbc04b9b8d8b599.zip
DebugInfo: Use DW_FORM_data4 for DW_AT_high_pc in inlined functions
Suggested by Adrian Prantl in code review for r203187. llvm-svn: 203296
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
index 3d4dd69df3c..81934e17297 100644
--- a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
+++ b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
@@ -542,8 +542,7 @@ DIE *DwarfDebug::constructInlinedScopeDIE(DwarfCompileUnit *TheCU,
"Invalid starting label for an inlined scope!");
assert(EndLabel->isDefined() && "Invalid end label for an inlined scope!");
- TheCU->addLabelAddress(ScopeDIE, dwarf::DW_AT_low_pc, StartLabel);
- TheCU->addLabelAddress(ScopeDIE, dwarf::DW_AT_high_pc, EndLabel);
+ attachLowHighPC(TheCU, ScopeDIE, StartLabel, EndLabel);
}
InlinedSubprogramDIEs.insert(OriginDIE);
OpenPOWER on IntegriCloud