Print newlines after printing labels for debug info, so that the output

isn't cluttered with things like "Llabel47:Llabel48:  movq  (%rsi), %xmm3"

llvm-svn: 90638
This commit is contained in:
Dan Gohman 2009-12-05 01:42:34 +00:00
parent c82272a7b6
commit 3a6164e8ab
2 changed files with 2 additions and 0 deletions

View File

@ -1374,6 +1374,7 @@ void AsmPrinter::processDebugLoc(const MachineInstr *MI,
unsigned L = DW->RecordSourceLine(CurDLT.Line, CurDLT.Col,
CurDLT.Scope);
printLabel(L);
O << '\n';
DW->BeginScope(MI, L);
PrevDLT = CurDLT;
}

View File

@ -1981,6 +1981,7 @@ void DwarfDebug::endScope(const MachineInstr *MI) {
unsigned Label = MMI->NextLabelID();
Asm->printLabel(Label);
O << '\n';
SmallVector<DbgScope *, 2> &SD = I->second;
for (SmallVector<DbgScope *, 2>::iterator SDI = SD.begin(), SDE = SD.end();