rt: allow unexported functions

rust_panic is unexported, however the metadata exported will usually
include it for attaching breakpoints.
This commit is contained in:
Richo Healey 2015-01-27 22:24:17 -08:00
parent 44ff72195e
commit d2ab7d3ea8

View file

@ -160,6 +160,7 @@ pub fn panicking() -> bool {
// An uninlined, unmangled function upon which to slap yer breakpoints
#[inline(never)]
#[no_mangle]
#[allow(private_no_mangle_fns)]
fn rust_panic(cause: Box<Any + Send>) -> ! {
rtdebug!("begin_unwind()");
@ -237,6 +238,7 @@ pub mod eabi {
#[lang="eh_personality"]
#[no_mangle] // referenced from rust_try.ll
#[allow(private_no_mangle_fns)]
extern fn rust_eh_personality(
version: c_int,
actions: uw::_Unwind_Action,
@ -252,6 +254,7 @@ pub mod eabi {
}
#[no_mangle] // referenced from rust_try.ll
#[allow(unexported_no_mangle)]
pub extern "C" fn rust_eh_personality_catch(
_version: c_int,
actions: uw::_Unwind_Action,
@ -290,6 +293,7 @@ pub mod eabi {
#[lang="eh_personality"]
#[no_mangle] // referenced from rust_try.ll
#[allow(unexported_no_mangle)]
pub extern "C" fn rust_eh_personality(
version: c_int,
actions: uw::_Unwind_Action,
@ -305,6 +309,7 @@ pub mod eabi {
}
#[no_mangle] // referenced from rust_try.ll
#[allow(unexported_no_mangle)]
pub extern "C" fn rust_eh_personality_catch(
_version: c_int,
actions: uw::_Unwind_Action,
@ -343,6 +348,7 @@ pub mod eabi {
#[lang="eh_personality"]
#[no_mangle] // referenced from rust_try.ll
#[allow(unexported_no_mangle)]
extern "C" fn rust_eh_personality(
state: uw::_Unwind_State,
ue_header: *mut uw::_Unwind_Exception,
@ -355,6 +361,7 @@ pub mod eabi {
}
#[no_mangle] // referenced from rust_try.ll
#[allow(unexported_no_mangle)]
pub extern "C" fn rust_eh_personality_catch(
state: uw::_Unwind_State,
_ue_header: *mut uw::_Unwind_Exception,
@ -432,6 +439,7 @@ pub mod eabi {
#[lang="eh_personality"]
#[no_mangle] // referenced from rust_try.ll
#[allow(unexported_no_mangle)]
extern "C" fn rust_eh_personality(
exceptionRecord: *mut EXCEPTION_RECORD,
establisherFrame: *mut c_void,
@ -446,6 +454,7 @@ pub mod eabi {
}
#[no_mangle] // referenced from rust_try.ll
#[allow(unexported_no_mangle)]
pub extern "C" fn rust_eh_personality_catch(
exceptionRecord: *mut EXCEPTION_RECORD,
establisherFrame: *mut c_void,