Use re-export instead of inline wrapper in libunwind

This ensures that there are no calls to `C-unwind` function in libunwind.
This commit is contained in:
Gary Guo 2022-05-14 02:49:12 +01:00
parent 68f063bf3f
commit fbb3c19e03
1 changed files with 1 additions and 4 deletions

View File

@ -264,10 +264,7 @@ if #[cfg(not(all(target_os = "ios", target_arch = "arm")))] {
pub fn _Unwind_SjLj_RaiseException(e: *mut _Unwind_Exception) -> _Unwind_Reason_Code;
}
#[inline]
pub unsafe fn _Unwind_RaiseException(exc: *mut _Unwind_Exception) -> _Unwind_Reason_Code {
_Unwind_SjLj_RaiseException(exc)
}
pub use _Unwind_SjLj_RaiseException as _Unwind_RaiseException;
}
} // cfg_if!