DW_OP_call_ref is the only operation that has an operand which depends on the DWARF format. The patch fixes handling that operation in DWARF64 units.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
llvm/lib/DebugInfo/DWARF/DWARFDebugFrame.cpp | ||
---|---|---|
135 | This comment is correct now, but without verification, this is bound to break eventually. Would it be possible to just pass the correct value here, or, alternatively, make the format optional and pass an llvm::None value here and then produce an error in DWARFExpression if no format was specified when one is needed? |
Comment Actions
- The DWARF format was made optional in DWARFExpression.
- Added a test to check that DW_OP_call_ref is not supported in location lists. That checks the code path when the DWARF format for DWARFExpression is not specified.
@aprantl, how do you find this variant?
This comment is correct now, but without verification, this is bound to break eventually. Would it be possible to just pass the correct value here, or, alternatively, make the format optional and pass an llvm::None value here and then produce an error in DWARFExpression if no format was specified when one is needed?