mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-23 17:24:48 +00:00
Sink DwarfUnit::SectionSym into DwarfCompileUnit as it's only needed/used there.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@221062 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -1745,6 +1745,15 @@ void DwarfUnit::emitHeader(const MCSymbol *ASectionSym) const {
|
||||
Asm->EmitInt8(Asm->getDataLayout().getPointerSize());
|
||||
}
|
||||
|
||||
void DwarfUnit::initSection(const MCSection *Section) {
|
||||
assert(!this->Section);
|
||||
this->Section = Section;
|
||||
this->LabelBegin =
|
||||
Asm->GetTempSymbol(Section->getLabelBeginName(), getUniqueID());
|
||||
this->LabelEnd =
|
||||
Asm->GetTempSymbol(Section->getLabelEndName(), getUniqueID());
|
||||
}
|
||||
|
||||
void DwarfTypeUnit::emitHeader(const MCSymbol *ASectionSym) const {
|
||||
DwarfUnit::emitHeader(ASectionSym);
|
||||
Asm->OutStreamer.AddComment("Type Signature");
|
||||
@ -1755,16 +1764,3 @@ void DwarfTypeUnit::emitHeader(const MCSymbol *ASectionSym) const {
|
||||
sizeof(Ty->getOffset()));
|
||||
}
|
||||
|
||||
void DwarfTypeUnit::initSection(const MCSection *Section) {
|
||||
assert(!this->Section);
|
||||
this->Section = Section;
|
||||
// Since each type unit is contained in its own COMDAT section, the begin
|
||||
// label and the section label are the same. Using the begin label emission in
|
||||
// DwarfDebug to emit the section label as well is slightly subtle/sneaky, but
|
||||
// the only other alternative of lazily constructing start-of-section labels
|
||||
// and storing a mapping in DwarfDebug (or AsmPrinter).
|
||||
this->SectionSym = this->LabelBegin =
|
||||
Asm->GetTempSymbol(Section->getLabelBeginName(), getUniqueID());
|
||||
this->LabelEnd =
|
||||
Asm->GetTempSymbol(Section->getLabelEndName(), getUniqueID());
|
||||
}
|
||||
|
Reference in New Issue
Block a user