mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-20 10:24:12 +00:00
[DebugInfo] Add DwarfDebug& to DwarfFile.
Use the DwarfDebug in one function that previously took it as a parameter, and lay the foundation for use this for other operations coming soon. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@220452 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -18,8 +18,11 @@
|
||||
#include "llvm/Target/TargetLoweringObjectFile.h"
|
||||
|
||||
namespace llvm {
|
||||
DwarfFile::DwarfFile(AsmPrinter *AP, StringRef Pref, BumpPtrAllocator &DA)
|
||||
: Asm(AP), StrPool(DA, *Asm, Pref) {}
|
||||
DwarfFile::DwarfFile(AsmPrinter *AP, DwarfDebug &DD, StringRef Pref,
|
||||
BumpPtrAllocator &DA)
|
||||
: Asm(AP), DD(DD), StrPool(DA, *Asm, Pref) {
|
||||
(void)this->DD;
|
||||
}
|
||||
|
||||
DwarfFile::~DwarfFile() {}
|
||||
|
||||
@ -48,7 +51,7 @@ void DwarfFile::addUnit(std::unique_ptr<DwarfUnit> U) {
|
||||
|
||||
// Emit the various dwarf units to the unit section USection with
|
||||
// the abbreviations going into ASection.
|
||||
void DwarfFile::emitUnits(DwarfDebug *DD, const MCSymbol *ASectionSym) {
|
||||
void DwarfFile::emitUnits(const MCSymbol *ASectionSym) {
|
||||
for (const auto &TheU : CUs) {
|
||||
DIE &Die = TheU->getUnitDie();
|
||||
const MCSection *USection = TheU->getSection();
|
||||
@ -63,7 +66,7 @@ void DwarfFile::emitUnits(DwarfDebug *DD, const MCSymbol *ASectionSym) {
|
||||
|
||||
TheU->emitHeader(ASectionSym);
|
||||
|
||||
DD->emitDIE(Die);
|
||||
DD.emitDIE(Die);
|
||||
Asm->OutStreamer.EmitLabel(TheU->getLabelEnd());
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user