diff options
author | Devang Patel <dpatel@apple.com> | 2010-12-06 22:48:22 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2010-12-06 22:48:22 +0000 |
commit | bca5b2572162ee03f2708caaa68ea2a24f9e7016 (patch) | |
tree | b76ecc6aaac0cdfe18ef7be08a4e56c674ae2821 /llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp | |
parent | c24048a7183c16516bee815eb66a0ac57c5f9203 (diff) | |
download | bcm5719-llvm-bca5b2572162ee03f2708caaa68ea2a24f9e7016.tar.gz bcm5719-llvm-bca5b2572162ee03f2708caaa68ea2a24f9e7016.zip |
Undefined value in reg 0 may need a marker to identify end of source range.
This will be used to truncate live range of DBG_VALUE instruction by register allocator and friends.
llvm-svn: 121061
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp')
-rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp index f2c7238f5fa..f43055054e4 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp @@ -2783,16 +2783,14 @@ void DwarfDebug::beginFunction(const MachineFunction *MF) { DIVariable DV(MI->getOperand(MI->getNumOperands() - 1).getMetadata()); if (!DV.Verify()) continue; // If DBG_VALUE is for a local variable then it needs a label. - if (DV.getTag() != dwarf::DW_TAG_arg_variable - && isDbgValueInUndefinedReg(MI) == false) + if (DV.getTag() != dwarf::DW_TAG_arg_variable) InsnNeedsLabel.insert(MI); // DBG_VALUE for inlined functions argument needs a label. else if (!DISubprogram(getDISubprogram(DV.getContext())). describes(MF->getFunction())) InsnNeedsLabel.insert(MI); // DBG_VALUE indicating argument location change needs a label. - else if (isDbgValueInUndefinedReg(MI) == false - && !ProcessedArgs.insert(DV)) + else if (!ProcessedArgs.insert(DV)) InsnNeedsLabel.insert(MI); } else { // If location is unknown then instruction needs a location only if |