Skip to content

Commit ce1f01b

Browse files
committed
[lldb][NFC] Add the UnwindPlan method for the header update
In 2064087 I updated the UnwindPlan header to include a new method, but didn't add the actual implementation. Fix that.
1 parent 7bd4f1a commit ce1f01b

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

lldb/source/Symbol/UnwindPlan.cpp

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -354,6 +354,17 @@ bool UnwindPlan::Row::SetRegisterLocationToSame(uint32_t reg_num,
354354
return true;
355355
}
356356

357+
bool UnwindPlan::Row::SetRegisterLocationToIsDWARFExpression(
358+
uint32_t reg_num, const uint8_t *opcodes, uint32_t len, bool can_replace) {
359+
if (!can_replace &&
360+
m_register_locations.find(reg_num) != m_register_locations.end())
361+
return false;
362+
AbstractRegisterLocation reg_loc;
363+
reg_loc.SetIsDWARFExpression(opcodes, len);
364+
m_register_locations[reg_num] = reg_loc;
365+
return true;
366+
}
367+
357368
bool UnwindPlan::Row::SetRegisterLocationToIsConstant(uint32_t reg_num,
358369
uint64_t constant,
359370
bool can_replace) {

0 commit comments

Comments
 (0)