mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-23 04:28:30 +00:00
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) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@221186 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
38728dc043
commit
fcd4288009
@ -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(
|
||||
|
@ -232,7 +232,7 @@ public:
|
||||
|
||||
/// getRangeLists - Get the vector of range lists.
|
||||
const SmallVectorImpl<RangeSpanList> &getRangeLists() const {
|
||||
return CURangeLists;
|
||||
return (Skeleton ? Skeleton : this)->CURangeLists;
|
||||
}
|
||||
|
||||
/// getRanges - Get the list of ranges for this unit.
|
||||
|
@ -565,7 +565,7 @@ void DwarfDebug::finalizeModuleInfo() {
|
||||
if (!AddrPool.isEmpty())
|
||||
SkCU->addSectionLabel(SkCU->getUnitDie(), dwarf::DW_AT_GNU_addr_base,
|
||||
DwarfAddrSectionSym, DwarfAddrSectionSym);
|
||||
if (!TheCU.getRangeLists().empty())
|
||||
if (!SkCU->getRangeLists().empty())
|
||||
SkCU->addSectionLabel(SkCU->getUnitDie(), dwarf::DW_AT_GNU_ranges_base,
|
||||
DwarfDebugRangeSectionSym,
|
||||
DwarfDebugRangeSectionSym);
|
||||
|
Loading…
Reference in New Issue
Block a user