Print newlines after printing labels for debug info, so that the output
authorDan Gohman <gohman@apple.com>
Sat, 5 Dec 2009 01:42:34 +0000 (01:42 +0000)
committerDan Gohman <gohman@apple.com>
Sat, 5 Dec 2009 01:42:34 +0000 (01:42 +0000)
isn't cluttered with things like "Llabel47:Llabel48:  movq  (%rsi), %xmm3"

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90638 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/AsmPrinter/AsmPrinter.cpp
lib/CodeGen/AsmPrinter/DwarfDebug.cpp

index a8f164cd9c27325631e0a9fe1fd41137a1604c2b..44fd176a79e55c20cd85ec6ef21961fe7d96e35e 100644 (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;
     }
index 60a8ffe0a62243997948f2811992556f72c79765..0dfab12f988043208b3f39afd90d3aa0345e63d6 100644 (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();