mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-21 18:24:23 +00:00
Sink dwarf unit length emission down into DwarfUnit::emitHeader
This allows the CU label to be emitted only for compile units, as they're the only ones that need it (so they can be referenced from pubnames) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@221072 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -686,4 +686,12 @@ void DwarfCompileUnit::collectDeadVariables(DISubprogram SP) {
|
||||
}
|
||||
}
|
||||
|
||||
void DwarfCompileUnit::emitHeader(const MCSymbol *ASectionSym) const {
|
||||
// Emit the compile units header.
|
||||
Asm->OutStreamer.EmitLabel(LabelBegin);
|
||||
|
||||
DwarfUnit::emitHeader(ASectionSym);
|
||||
}
|
||||
|
||||
|
||||
} // end llvm namespace
|
||||
|
Reference in New Issue
Block a user