summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
diff options
context:
space:
mode:
authorFrederic Riss <friss@apple.com>2014-08-29 09:00:26 +0000
committerFrederic Riss <friss@apple.com>2014-08-29 09:00:26 +0000
commit5732301afb985f92a474cddbd00797cb82b419c8 (patch)
tree0927a55e7c335531cfe1536bd32e772fa31a44df /llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
parente59cd6e6ffd304d5de84a316a07fd9d7e22eb7f6 (diff)
downloadbcm5719-llvm-5732301afb985f92a474cddbd00797cb82b419c8.tar.gz
bcm5719-llvm-5732301afb985f92a474cddbd00797cb82b419c8.zip
Use DwarfDebug::attachLowHighPC for the compilation unit DIE.
llvm-svn: 216719
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
index 1788a6289ed..7f8d152a691 100644
--- a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
+++ b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
@@ -950,10 +950,7 @@ void DwarfDebug::finalizeModuleInfo() {
0);
} else {
RangeSpan &Range = TheU->getRanges().back();
- U.addLocalLabelAddress(U.getUnitDie(), dwarf::DW_AT_low_pc,
- Range.getStart());
- U.addLabelDelta(U.getUnitDie(), dwarf::DW_AT_high_pc, Range.getEnd(),
- Range.getStart());
+ attachLowHighPC(U, U.getUnitDie(), Range.getStart(), Range.getEnd());
}
}
}
OpenPOWER on IntegriCloud