summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2010-06-01 21:43:09 +0000
committerDevang Patel <dpatel@apple.com>2010-06-01 21:43:09 +0000
commitf2e77676242bb5a3940da7b41c42704135e6bd92 (patch)
tree1cde1e68506024a981a9cf606d4c482c6f0ecdd7
parent69081e9291aff67e0b497e26c780bf5b6f0e0443 (diff)
downloadllvm-f2e77676242bb5a3940da7b41c42704135e6bd92.tar.gz
llvm-f2e77676242bb5a3940da7b41c42704135e6bd92.tar.bz2
llvm-f2e77676242bb5a3940da7b41c42704135e6bd92.tar.xz
Ignore line number of debug value in undefined register.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@105292 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/CodeGen/AsmPrinter/DwarfDebug.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
index f75447ec81..c9207c5a1e 100644
--- a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
+++ b/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
@@ -2631,6 +2631,7 @@ void DwarfDebug::beginFunction(const MachineFunction *MF) {
assert (MI->getNumOperands() > 1 && "Invalid machine instruction!");
DIVariable DV(MI->getOperand(MI->getNumOperands() - 1).getMetadata());
if (!DV.Verify()) continue;
+ if (isDbgValueInUndefinedReg(MI)) continue;
// If DBG_VALUE is for a local variable then it needs a label.
if (DV.getTag() != dwarf::DW_TAG_arg_variable)
InsnNeedsLabel.insert(MI);