[lldb] [llvm] [lldb] Use llvm::DWARFExpression::iterator in DWARFExpression::Evaluate (PR #190556)
Shivam Kunwar via llvm-commits
llvm-commits at lists.llvm.org
Sun Apr 5 23:46:01 PDT 2026
================
@@ -2010,24 +2006,25 @@ llvm::Expected<Value> DWARFExpression::Evaluate(
case DW_OP_implicit_value: {
dwarf4_location_description_kind = Implicit;
- const uint32_t len = opcodes.GetULEB128(&offset);
- const void *data = opcodes.GetData(&offset, len);
+ const uint64_t block_size = op->getRawOperand(0);
+ uint64_t block_offset = op->getRawOperand(1);
----------------
phyBrackets wrote:
`getRawOperand(1)` for `DW_OP_implicit_value` returns... what exactly? LLVM representation stores blocks differently from regular operands. Is operand 1 the offset into the expression data where the block starts? This needs a comment explaining the contract, because it's not obvious and different from the simple integer-operand cases.
https://github.com/llvm/llvm-project/pull/190556
More information about the llvm-commits
mailing list