mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-24 23:28:41 +00:00
Move up dwarf writer initialization in common AsmPrinter class.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73784 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -490,12 +490,8 @@ LinuxAsmPrinter::runOnMachineFunction(MachineFunction &MF)
|
||||
|
||||
bool LinuxAsmPrinter::doInitialization(Module &M) {
|
||||
bool Result = AsmPrinter::doInitialization(M);
|
||||
SwitchToTextSection("\t.text");
|
||||
// Emit initial debug information.
|
||||
DW = getAnalysisIfAvailable<DwarfWriter>();
|
||||
assert(DW && "Dwarf Writer is not available");
|
||||
MMI = getAnalysisIfAvailable<MachineModuleInfo>();
|
||||
DW->BeginModule(&M, MMI, O, this, TAI);
|
||||
SwitchToTextSection("\t.text");
|
||||
return Result;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user