diff options
| author | Devang Patel <dpatel@apple.com> | 2011-07-07 00:14:27 +0000 |
|---|---|---|
| committer | Devang Patel <dpatel@apple.com> | 2011-07-07 00:14:27 +0000 |
| commit | b7a328ed27ea04689ce7b1e83fa90fddf40ff64b (patch) | |
| tree | 1ada2579aece6727916ddef16a10cca40a56e90d /llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp | |
| parent | bd68b95889e5cc57e8fc740bab981383e263e3a2 (diff) | |
| download | bcm5719-llvm-b7a328ed27ea04689ce7b1e83fa90fddf40ff64b.tar.gz bcm5719-llvm-b7a328ed27ea04689ce7b1e83fa90fddf40ff64b.zip | |
Add DEBUG messages.
llvm-svn: 134572
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp')
| -rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp index 0c23e4af97b..99d27e4c9c5 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp @@ -1885,8 +1885,12 @@ void DwarfDebug::beginFunction(const MachineFunction *MF) { if (Prev->isDebugValue()) { // Coalesce identical entries at the end of History. if (History.size() >= 2 && - Prev->isIdenticalTo(History[History.size() - 2])) + Prev->isIdenticalTo(History[History.size() - 2])) { + DEBUG(dbgs() << "Coalesce identical DBG_VALUE entries:\n" + << "\t" << *Prev + << "\t" << *History[History.size() - 2] << "\n"); History.pop_back(); + } // Terminate old register assignments that don't reach MI; MachineFunction::const_iterator PrevMBB = Prev->getParent(); @@ -1896,9 +1900,12 @@ void DwarfDebug::beginFunction(const MachineFunction *MF) { // its basic block. MachineBasicBlock::const_iterator LastMI = PrevMBB->getLastNonDebugInstr(); - if (LastMI == PrevMBB->end()) + if (LastMI == PrevMBB->end()) { // Drop DBG_VALUE for empty range. + DEBUG(dbgs() << "Drop DBG_VALUE for empty range:\n" + << "\t" << *Prev << "\n"); History.pop_back(); + } else { // Terminate after LastMI. History.push_back(LastMI); |

