From: Keith Walker Date: Tue, 20 Sep 2016 16:04:31 +0000 (+0000) Subject: Improve the -debug output for Debug Range Extension (NFC) X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4e09440dd594e2028632e8350eacef838f67a6eb;p=llvm Improve the -debug output for Debug Range Extension (NFC) Include header messages and remove unnecessary blank lines. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@281980 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/LiveDebugValues.cpp b/lib/CodeGen/LiveDebugValues.cpp index 4986895ba03..41af34e0099 100644 --- a/lib/CodeGen/LiveDebugValues.cpp +++ b/lib/CodeGen/LiveDebugValues.cpp @@ -260,6 +260,7 @@ void LiveDebugValues::printVarLocInMBB(const MachineFunction &MF, const VarLocMap &VarLocIDs, const char *msg, raw_ostream &Out) const { + Out << '\n' << msg << '\n'; for (const MachineBasicBlock &BB : MF) { const auto &L = V.lookup(&BB); Out << "MBB: " << BB.getName() << ":\n"; @@ -268,7 +269,6 @@ void LiveDebugValues::printVarLocInMBB(const MachineFunction &MF, Out << " Var: " << VL.Var.getVar()->getName(); Out << " MI: "; VL.dump(); - Out << "\n"; } } Out << "\n"; @@ -468,6 +468,7 @@ bool LiveDebugValues::ExtendRanges(MachineFunction &MF) { // thing twice. We could avoid this with a custom priority queue, but this // is probably not worth it. SmallPtrSet OnPending; + DEBUG(dbgs() << "Processing Worklist\n"); while (!Worklist.empty()) { MachineBasicBlock *MBB = OrderToBB[Worklist.top()]; Worklist.pop();