mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-06 06:33:24 +00:00
Don't bother creating LabelBegin for .dwo units
This would help catch cases where we might otherwise try to reference a dwo CU label, which would be weird - because without relocations in the dwo file it's not generally meaningful to talk about the CU offsets there (or, if it is, we can do so in absolute terms without using a relocation to compute it). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@221078 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
79e72dd73c
commit
3ee898c624
@ -687,8 +687,9 @@ void DwarfCompileUnit::collectDeadVariables(DISubprogram SP) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void DwarfCompileUnit::emitHeader(const MCSymbol *ASectionSym) const {
|
void DwarfCompileUnit::emitHeader(const MCSymbol *ASectionSym) const {
|
||||||
// Emit the compile units header.
|
// Don't bother labeling the .dwo unit, as its offset isn't used.
|
||||||
Asm->OutStreamer.EmitLabel(LabelBegin);
|
if (!Skeleton)
|
||||||
|
Asm->OutStreamer.EmitLabel(LabelBegin);
|
||||||
|
|
||||||
DwarfUnit::emitHeader(ASectionSym);
|
DwarfUnit::emitHeader(ASectionSym);
|
||||||
}
|
}
|
||||||
|
@ -158,8 +158,11 @@ public:
|
|||||||
void initSection(const MCSection *Section, MCSymbol *SectionSym) {
|
void initSection(const MCSection *Section, MCSymbol *SectionSym) {
|
||||||
DwarfUnit::initSection(Section);
|
DwarfUnit::initSection(Section);
|
||||||
this->SectionSym = SectionSym;
|
this->SectionSym = SectionSym;
|
||||||
LabelBegin =
|
|
||||||
Asm->GetTempSymbol(Section->getLabelBeginName(), getUniqueID());
|
// Don't bother labeling the .dwo unit, as its offset isn't used.
|
||||||
|
if (!Skeleton)
|
||||||
|
LabelBegin =
|
||||||
|
Asm->GetTempSymbol(Section->getLabelBeginName(), getUniqueID());
|
||||||
}
|
}
|
||||||
|
|
||||||
unsigned getLength() {
|
unsigned getLength() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user