Skip to content

Commit

Permalink
[lldb][NFC] Add the UnwindPlan method for the header update
Browse files Browse the repository at this point in the history
In 2064087 I updated the
UnwindPlan header to include a new method, but didn't add
the actual implementation.  Fix that.
  • Loading branch information
jasonmolenda committed Sep 24, 2024
1 parent 7bd4f1a commit ce1f01b
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions lldb/source/Symbol/UnwindPlan.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -354,6 +354,17 @@ bool UnwindPlan::Row::SetRegisterLocationToSame(uint32_t reg_num,
return true;
}

bool UnwindPlan::Row::SetRegisterLocationToIsDWARFExpression(
uint32_t reg_num, const uint8_t *opcodes, uint32_t len, bool can_replace) {
if (!can_replace &&
m_register_locations.find(reg_num) != m_register_locations.end())
return false;
AbstractRegisterLocation reg_loc;
reg_loc.SetIsDWARFExpression(opcodes, len);
m_register_locations[reg_num] = reg_loc;
return true;
}

bool UnwindPlan::Row::SetRegisterLocationToIsConstant(uint32_t reg_num,
uint64_t constant,
bool can_replace) {
Expand Down

0 comments on commit ce1f01b

Please sign in to comment.