diff options
author | Felipe de Azevedo Piovezan <fpiovezan@apple.com> | 2023-12-18 16:53:18 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-18 11:53:18 -0800 |
commit | da2db4a9e833804384c1fa56af77b6953e3afa23 (patch) | |
tree | 306ec27329fb130bd64bdba924da3e9c3bcb8a53 /llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.cpp | |
parent | a6f6dd185401e28ff6c3513c228a4c85633ffed7 (diff) | |
download | llvm-da2db4a9e833804384c1fa56af77b6953e3afa23.zip llvm-da2db4a9e833804384c1fa56af77b6953e3afa23.tar.gz llvm-da2db4a9e833804384c1fa56af77b6953e3afa23.tar.bz2 |
[InstrRef][NFC] Delete unused variables (#75501)
`V` was unused, and all the other deletions follow from that
observation.
Diffstat (limited to 'llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.cpp')
-rw-r--r-- | llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.cpp | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.cpp b/llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.cpp index 87a0ba5..aeb8a20e 100644 --- a/llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.cpp +++ b/llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.cpp @@ -1375,16 +1375,9 @@ bool InstrRefBasedLDV::transferDebugValue(const MachineInstr &MI) { if (!MI.isDebugValue()) return false; - const DILocalVariable *Var = MI.getDebugVariable(); - const DIExpression *Expr = MI.getDebugExpression(); - const DILocation *DebugLoc = MI.getDebugLoc(); - const DILocation *InlinedAt = DebugLoc->getInlinedAt(); - assert(Var->isValidLocationForIntrinsic(DebugLoc) && + assert(MI.getDebugVariable()->isValidLocationForIntrinsic(MI.getDebugLoc()) && "Expected inlined-at fields to agree"); - DebugVariable V(Var, Expr, InlinedAt); - DbgValueProperties Properties(MI); - // If there are no instructions in this lexical scope, do no location tracking // at all, this variable shouldn't get a legitimate location range. auto *Scope = LS.findLexicalScope(MI.getDebugLoc().get()); @@ -1417,7 +1410,7 @@ bool InstrRefBasedLDV::transferDebugValue(const MachineInstr &MI) { } } } - VTracker->defVar(MI, Properties, DebugOps); + VTracker->defVar(MI, DbgValueProperties(MI), DebugOps); } // If performing final tracking of transfers, report this variable definition |