@@ -17,20 +17,13 @@ use lib::llvm::{ModuleRef, ValueRef};
17
17
pub struct Upcalls {
18
18
trace : ValueRef ,
19
19
rust_personality : ValueRef ,
20
- reset_stack_limit : ValueRef
21
20
}
22
21
23
22
macro_rules! upcall (
24
23
( fn $name: ident( $( $arg: expr) ,+) -> $ret: expr) => ( {
25
24
let fn_ty = Type :: func( [ $( $arg) ,* ] , & $ret) ;
26
25
base:: decl_cdecl_fn( llmod, ~"upcall_" + stringify!($name), fn_ty)
27
26
});
28
- (nothrow fn $name:ident($($arg:expr),+) -> $ret:expr) => ({
29
- let fn_ty = Type::func([ $($arg),* ], &$ret);
30
- let decl = base::decl_cdecl_fn(llmod, ~" upcall_" + stringify!($name), fn_ty);
31
- base::set_no_unwind(decl);
32
- decl
33
- });
34
27
(nothrow fn $name:ident -> $ret:expr) => ({
35
28
let fn_ty = Type::func([], &$ret);
36
29
let decl = base::decl_cdecl_fn(llmod, ~" upcall_" + stringify!( $name) , fn_ty) ;
@@ -46,6 +39,5 @@ pub fn declare_upcalls(targ_cfg: @session::config, llmod: ModuleRef) -> @Upcalls
46
39
@Upcalls {
47
40
trace : upcall ! ( fn trace( opaque_ptr, opaque_ptr, int_ty) -> Type :: void( ) ) ,
48
41
rust_personality : upcall ! ( nothrow fn rust_personality -> Type :: i32 ( ) ) ,
49
- reset_stack_limit : upcall ! ( nothrow fn reset_stack_limit -> Type :: void( ) )
50
42
}
51
43
}
0 commit comments