Merge pull request #2838 from uweigand/optionalfp

Allow unwind support to work without a frame pointer
This commit is contained in:
Chris Fallin
2021-04-14 10:58:51 -07:00
committed by GitHub
6 changed files with 47 additions and 15 deletions

View File

@@ -56,8 +56,8 @@ impl crate::isa::unwind::systemv::RegisterMapper<Reg> for RegisterMapper {
fn sp(&self) -> u16 {
regs::stack_reg().get_hw_encoding().into()
}
fn fp(&self) -> u16 {
regs::fp_reg().get_hw_encoding().into()
fn fp(&self) -> Option<u16> {
Some(regs::fp_reg().get_hw_encoding().into())
}
fn lr(&self) -> Option<u16> {
Some(regs::link_reg().get_hw_encoding().into())