diff options
| author | Devang Patel <dpatel@apple.com> | 2011-06-01 23:00:17 +0000 |
|---|---|---|
| committer | Devang Patel <dpatel@apple.com> | 2011-06-01 23:00:17 +0000 |
| commit | e7181b5fdb590c90ec1f559b148d3aa2d546a320 (patch) | |
| tree | 81e5e1328f5bfc6d367c28bfd88af80d59a689aa /llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp | |
| parent | 7e51117db221749cfedfe2128f6a760e190e043a (diff) | |
| download | bcm5719-llvm-e7181b5fdb590c90ec1f559b148d3aa2d546a320.tar.gz bcm5719-llvm-e7181b5fdb590c90ec1f559b148d3aa2d546a320.zip | |
A DBG_VALUE that truncates a range does not start another dbg value range.
llvm-svn: 132433
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp')
| -rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp index 0dc5b74fa37..c09c1c558e5 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp @@ -1411,6 +1411,11 @@ DwarfDebug::collectVariableInfo(const MachineFunction *MF, const MachineInstr *Begin = *HI; assert(Begin->isDebugValue() && "Invalid History entry"); + // Check if DBG_VALUE is truncating a range. + if (Begin->getNumOperands() > 1 && Begin->getOperand(0).isReg() + && !Begin->getOperand(0).getReg()) + continue; + // Compute the range for a register location. const MCSymbol *FLabel = getLabelBeforeInsn(Begin); const MCSymbol *SLabel = 0; |

