Skip to content

Commit

Permalink
Improve the -debug output for Debug Range Extension (NFC)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Keith Walker committed Sep 20, 2016
1 parent a93f61a commit 4e09440
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/CodeGen/LiveDebugValues.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand All @@ -268,7 +269,6 @@ void LiveDebugValues::printVarLocInMBB(const MachineFunction &MF,
Out << " Var: " << VL.Var.getVar()->getName();
Out << " MI: ";
VL.dump();
Out << "\n";
}
}
Out << "\n";
Expand Down Expand Up @@ -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<MachineBasicBlock *, 16> OnPending;
DEBUG(dbgs() << "Processing Worklist\n");
while (!Worklist.empty()) {
MachineBasicBlock *MBB = OrderToBB[Worklist.top()];
Worklist.pop();
Expand Down

0 comments on commit 4e09440

Please sign in to comment.