Gracefully handle non-1 stack sizes in printCompactDWARFExpr rather than
assert. Add support for DW_OP_nop and test the zero-sized stack case.
This is intended to be nearly NFC.
Paths
| Differential D147269
[DebugInfo] printCompactDWARFExpr: don't assert on stack size ClosedPublic Authored by scott.linder on Mar 30 2023, 1:51 PM.
Details
Summary Gracefully handle non-1 stack sizes in printCompactDWARFExpr rather than This is intended to be nearly NFC.
Diff Detail
Event Timelinescott.linder added a parent revision: D147267: [NFC][DebugInfo] Make Descriptions constexpr.Mar 30 2023, 3:26 PM scott.linder added a child revision: D147270: [DebugInfo] Support more than 2 operands in DWARF operations. This revision is now accepted and ready to land.Mar 31 2023, 1:30 AM Comment Actions Not the best error handling (like might be better returning Error from this function?) but probably OK. Comment Actions
I agree, but to avoid shaving too many yaks I adopted the existing mechanism for error handling in the function, which is to write an error message to OS and return false. Closed by commit rG7f596bb50944: [DebugInfo] printCompactDWARFExpr: don't assert on stack size (authored by scott.linder). · Explain WhyApr 19 2023, 1:49 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 509804 llvm/lib/DebugInfo/DWARF/DWARFExpression.cpp
llvm/unittests/DebugInfo/DWARF/DWARFExpressionCompactPrinterTest.cpp
|