summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2018-11-08 00:35:54 +0000
committerDavid Blaikie <dblaikie@gmail.com>2018-11-08 00:35:54 +0000
commitc8f7e6c1a9dd656c618fca015868112cfdf62c00 (patch)
tree2a839933376a2d9a8a7fca4471e80b3acbcf0200 /llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp
parentc4cf775ae09bd9ed0c73180244c27cc6e702e524 (diff)
downloadbcm5719-llvm-c8f7e6c1a9dd656c618fca015868112cfdf62c00.tar.gz
bcm5719-llvm-c8f7e6c1a9dd656c618fca015868112cfdf62c00.zip
NFC: DebugInfo: Track the origin CU rather than just the base address for range lists
Turns out knowing more than just the base address might be useful - specifically a future change to respect a DICompileUnit flag for the use of base address specifiers in DWARF < 5. llvm-svn: 346380
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp
index a32cd8bc904..d93c7f6c845 100644
--- a/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp
+++ b/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp
@@ -430,8 +430,7 @@ void DwarfCompileUnit::addScopeRangeList(DIE &ScopeDIE,
// Add the range list to the set of ranges to be emitted.
auto IndexAndList =
(DD->getDwarfVersion() < 5 && Skeleton ? Skeleton->DU : DU)
- ->addRange((Skeleton ? Skeleton->BaseAddress : BaseAddress),
- std::move(Range));
+ ->addRange(*(Skeleton ? Skeleton : this), std::move(Range));
uint32_t Index = IndexAndList.first;
auto &List = *IndexAndList.second;
OpenPOWER on IntegriCloud