mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-03-13 08:35:46 +00:00
Simplify.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74215 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
9e03cbefc5
commit
208622db8a
@ -1371,9 +1371,12 @@ bool DwarfDebug::ConstructSubprograms() {
|
|||||||
return Result;
|
return Result;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// SetDebugInfo - Create global DIEs and emit initial debug info sections.
|
/// BeginModule - Emit all Dwarf sections that should come prior to the
|
||||||
/// This is inovked by the target AsmPrinter.
|
/// content. Create global DIEs and emit initial debug info sections.
|
||||||
void DwarfDebug::SetDebugInfo(MachineModuleInfo *mmi) {
|
/// This is inovked by the target AsmPrinter.
|
||||||
|
void DwarfDebug::BeginModule(Module *M, MachineModuleInfo *mmi) {
|
||||||
|
this->M = M;
|
||||||
|
|
||||||
if (TimePassesIsEnabled)
|
if (TimePassesIsEnabled)
|
||||||
DebugTimer->startTimer();
|
DebugTimer->startTimer();
|
||||||
|
|
||||||
|
@ -486,15 +486,9 @@ public:
|
|||||||
/// be emitted.
|
/// be emitted.
|
||||||
bool ShouldEmitDwarfDebug() const { return shouldEmit; }
|
bool ShouldEmitDwarfDebug() const { return shouldEmit; }
|
||||||
|
|
||||||
/// SetDebugInfo - Create global DIEs and emit initial debug info sections.
|
|
||||||
/// This is inovked by the target AsmPrinter.
|
|
||||||
void SetDebugInfo(MachineModuleInfo *mmi);
|
|
||||||
|
|
||||||
/// BeginModule - Emit all Dwarf sections that should come prior to the
|
/// BeginModule - Emit all Dwarf sections that should come prior to the
|
||||||
/// content.
|
/// content.
|
||||||
void BeginModule(Module *M) {
|
void BeginModule(Module *M, MachineModuleInfo *MMI);
|
||||||
this->M = M;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// EndModule - Emit all Dwarf sections that should come after the content.
|
/// EndModule - Emit all Dwarf sections that should come after the content.
|
||||||
///
|
///
|
||||||
|
@ -149,16 +149,11 @@ public:
|
|||||||
DwarfException(raw_ostream &OS, AsmPrinter *A, const TargetAsmInfo *T);
|
DwarfException(raw_ostream &OS, AsmPrinter *A, const TargetAsmInfo *T);
|
||||||
virtual ~DwarfException();
|
virtual ~DwarfException();
|
||||||
|
|
||||||
/// SetModuleInfo - Set machine module information when it's known that pass
|
|
||||||
/// manager has created it. Set by the target AsmPrinter.
|
|
||||||
void SetModuleInfo(MachineModuleInfo *mmi) {
|
|
||||||
MMI = mmi;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// BeginModule - Emit all exception information that should come prior to the
|
/// BeginModule - Emit all exception information that should come prior to the
|
||||||
/// content.
|
/// content.
|
||||||
void BeginModule(Module *M) {
|
void BeginModule(Module *m, MachineModuleInfo *mmi) {
|
||||||
this->M = M;
|
this->M = m;
|
||||||
|
this->MMI = mmi;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// EndModule - Emit all exception information that should come after the
|
/// EndModule - Emit all exception information that should come after the
|
||||||
|
@ -42,10 +42,8 @@ void DwarfWriter::BeginModule(Module *M,
|
|||||||
const TargetAsmInfo *T) {
|
const TargetAsmInfo *T) {
|
||||||
DE = new DwarfException(OS, A, T);
|
DE = new DwarfException(OS, A, T);
|
||||||
DD = new DwarfDebug(OS, A, T);
|
DD = new DwarfDebug(OS, A, T);
|
||||||
DE->BeginModule(M);
|
DE->BeginModule(M, MMI);
|
||||||
DD->BeginModule(M);
|
DD->BeginModule(M, MMI);
|
||||||
DD->SetDebugInfo(MMI);
|
|
||||||
DE->SetModuleInfo(MMI);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// EndModule - Emit all Dwarf sections that should come after the content.
|
/// EndModule - Emit all Dwarf sections that should come after the content.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user