summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2014-11-03 21:52:56 +0000
committerDavid Blaikie <dblaikie@gmail.com>2014-11-03 21:52:56 +0000
commit542616d47c5533a338e54db76dc99765410065ef (patch)
treef65407417c8164dd57d432666b5386df94af9b32 /llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp
parentec0f3d755f6542bcff0125d10b9caae68155d3f7 (diff)
downloadbcm5719-llvm-542616d47c5533a338e54db76dc99765410065ef.tar.gz
bcm5719-llvm-542616d47c5533a338e54db76dc99765410065ef.zip
Push the CURangeList down into the skeleton CU (where available) rather than the full CU
So that it may be shared between skeleton/full compile unit, for CU ranges and other ranges to be added for fission+gmlt. (at some point we might want some kind of object shared between the skeleton and full compile units for all those things we only want one of in that scope, rather than having the full unit always look through to the skeleton... - alternatively, we might be able to have the skeleton pointer (or another, separate pointer) point to the skeleton or to the unit itself in non-fission, so we don't have to special case its absence) llvm-svn: 221186
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp
index 714043d0be6..1bb546e54b2 100644
--- a/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp
+++ b/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp
@@ -395,7 +395,7 @@ DwarfCompileUnit::addScopeRangeList(DIE &ScopeDIE,
DD->getLabelAfterInsn(R.second)));
// Add the range list to the set of ranges to be emitted.
- CURangeLists.push_back(std::move(List));
+ (Skeleton ? Skeleton : this)->CURangeLists.push_back(std::move(List));
}
void DwarfCompileUnit::attachRangesOrLowHighPC(
OpenPOWER on IntegriCloud