rustc: Add upcall stubs for the new C stack upcalls

This commit is contained in:
Patrick Walton 2011-09-28 18:15:28 -07:00
parent 41ab324539
commit c04efec87f
1 changed files with 5 additions and 0 deletions

View File

@ -38,6 +38,8 @@ type upcalls =
dynastack_mark: ValueRef,
dynastack_alloc: ValueRef,
dynastack_free: ValueRef,
alloc_c_stack: ValueRef,
call_c_stack: ValueRef,
rust_personality: ValueRef};
fn declare_upcalls(_tn: type_names, tydesc_type: TypeRef,
@ -91,6 +93,9 @@ fn declare_upcalls(_tn: type_names, tydesc_type: TypeRef,
d("dynastack_alloc_2", [T_size_t(), T_ptr(tydesc_type)],
T_ptr(T_i8())),
dynastack_free: d("dynastack_free", [T_ptr(T_i8())], T_void()),
alloc_c_stack: dr("alloc_c_stack", [T_size_t()], T_ptr(T_i8())),
call_c_stack: dr("call_c_stack", [T_ptr(T_i8()), T_ptr(T_i8())],
T_void()),
rust_personality: dr("rust_personality", [], T_i32())
};
}