mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-21 18:24:23 +00:00
Move label creation close to emission. NFC.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@231744 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -1604,7 +1604,7 @@ DIE *DwarfUnit::getOrCreateStaticMemberDIE(DIDerivedType DT) {
|
||||
return &StaticMemberDIE;
|
||||
}
|
||||
|
||||
void DwarfUnit::emitHeader(const MCSymbol *ASectionSym) const {
|
||||
void DwarfUnit::emitHeader(const MCSymbol *ASectionSym) {
|
||||
// Emit size of content not including length itself
|
||||
Asm->OutStreamer.AddComment("Length of Unit");
|
||||
Asm->EmitInt32(getHeaderSize() + UnitDie.getSize());
|
||||
@ -1629,7 +1629,7 @@ void DwarfUnit::initSection(const MCSection *Section) {
|
||||
this->Section = Section;
|
||||
}
|
||||
|
||||
void DwarfTypeUnit::emitHeader(const MCSymbol *ASectionSym) const {
|
||||
void DwarfTypeUnit::emitHeader(const MCSymbol *ASectionSym) {
|
||||
DwarfUnit::emitHeader(ASectionSym);
|
||||
Asm->OutStreamer.AddComment("Type Signature");
|
||||
Asm->OutStreamer.EmitIntValue(TypeSignature, sizeof(TypeSignature));
|
||||
|
Reference in New Issue
Block a user