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

View File

@ -264,10 +264,7 @@ pub fn _Unwind_Backtrace(trace: _Unwind_Trace_Fn,
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!