mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-20 10:24:12 +00:00
Remove DwarfUnit::LabelRange since it's unused.
Seems at some point the intent was to emit fission ranges_base as unique per CU but the code today emits ranges_base as the start of the ranges section for all CUs being compiled and all the ranges_base relative addresses are relative to that. So removing this dead code and leaving the status quo until there's a reason to change it (perhaps something's faster if it has distinct ranges for each CU). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207464 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -2355,9 +2355,6 @@ void DwarfDebug::emitDebugRanges() {
|
|||||||
for (const auto &I : CUMap) {
|
for (const auto &I : CUMap) {
|
||||||
DwarfCompileUnit *TheCU = I.second;
|
DwarfCompileUnit *TheCU = I.second;
|
||||||
|
|
||||||
// Emit a symbol so we can find the beginning of our ranges.
|
|
||||||
Asm->OutStreamer.EmitLabel(TheCU->getLabelRange());
|
|
||||||
|
|
||||||
// Iterate over the misc ranges for the compile units in the module.
|
// Iterate over the misc ranges for the compile units in the module.
|
||||||
for (const RangeSpanList &List : TheCU->getRangeLists()) {
|
for (const RangeSpanList &List : TheCU->getRangeLists()) {
|
||||||
// Emit our symbol so we can find the beginning of the range.
|
// Emit our symbol so we can find the beginning of the range.
|
||||||
|
@ -2092,5 +2092,4 @@ void DwarfTypeUnit::initSection(const MCSection *Section) {
|
|||||||
Asm->GetTempSymbol(Section->getLabelBeginName(), getUniqueID());
|
Asm->GetTempSymbol(Section->getLabelBeginName(), getUniqueID());
|
||||||
this->LabelEnd =
|
this->LabelEnd =
|
||||||
Asm->GetTempSymbol(Section->getLabelEndName(), getUniqueID());
|
Asm->GetTempSymbol(Section->getLabelEndName(), getUniqueID());
|
||||||
this->LabelRange = Asm->GetTempSymbol("gnu_ranges", getUniqueID());
|
|
||||||
}
|
}
|
||||||
|
@ -138,9 +138,6 @@ protected:
|
|||||||
/// The end of the unit within its section.
|
/// The end of the unit within its section.
|
||||||
MCSymbol *LabelEnd;
|
MCSymbol *LabelEnd;
|
||||||
|
|
||||||
/// The label for the start of the range sets for the elements of this unit.
|
|
||||||
MCSymbol *LabelRange;
|
|
||||||
|
|
||||||
/// Skeleton unit associated with this unit.
|
/// Skeleton unit associated with this unit.
|
||||||
DwarfUnit *Skeleton;
|
DwarfUnit *Skeleton;
|
||||||
|
|
||||||
@ -167,7 +164,6 @@ public:
|
|||||||
Asm->GetTempSymbol(Section->getLabelBeginName(), getUniqueID());
|
Asm->GetTempSymbol(Section->getLabelBeginName(), getUniqueID());
|
||||||
this->LabelEnd =
|
this->LabelEnd =
|
||||||
Asm->GetTempSymbol(Section->getLabelEndName(), getUniqueID());
|
Asm->GetTempSymbol(Section->getLabelEndName(), getUniqueID());
|
||||||
this->LabelRange = Asm->GetTempSymbol("gnu_ranges", getUniqueID());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const MCSection *getSection() const {
|
const MCSection *getSection() const {
|
||||||
@ -206,11 +202,6 @@ public:
|
|||||||
return LabelEnd;
|
return LabelEnd;
|
||||||
}
|
}
|
||||||
|
|
||||||
MCSymbol *getLabelRange() const {
|
|
||||||
assert(Section);
|
|
||||||
return LabelRange;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Accessors.
|
// Accessors.
|
||||||
unsigned getUniqueID() const { return UniqueID; }
|
unsigned getUniqueID() const { return UniqueID; }
|
||||||
uint16_t getLanguage() const { return CUNode.getLanguage(); }
|
uint16_t getLanguage() const { return CUNode.getLanguage(); }
|
||||||
|
Reference in New Issue
Block a user