mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-04-02 07:41:38 +00:00
Ignore line number of debug value in undefined register.
llvm-svn: 105292
This commit is contained in:
parent
b37767db31
commit
345874624f
@ -2631,6 +2631,7 @@ void DwarfDebug::beginFunction(const MachineFunction *MF) {
|
|||||||
assert (MI->getNumOperands() > 1 && "Invalid machine instruction!");
|
assert (MI->getNumOperands() > 1 && "Invalid machine instruction!");
|
||||||
DIVariable DV(MI->getOperand(MI->getNumOperands() - 1).getMetadata());
|
DIVariable DV(MI->getOperand(MI->getNumOperands() - 1).getMetadata());
|
||||||
if (!DV.Verify()) continue;
|
if (!DV.Verify()) continue;
|
||||||
|
if (isDbgValueInUndefinedReg(MI)) continue;
|
||||||
// If DBG_VALUE is for a local variable then it needs a label.
|
// If DBG_VALUE is for a local variable then it needs a label.
|
||||||
if (DV.getTag() != dwarf::DW_TAG_arg_variable)
|
if (DV.getTag() != dwarf::DW_TAG_arg_variable)
|
||||||
InsnNeedsLabel.insert(MI);
|
InsnNeedsLabel.insert(MI);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user