Skip to content

Commit c04efec

Browse files
committed
rustc: Add upcall stubs for the new C stack upcalls
1 parent 41ab324 commit c04efec

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/comp/back/upcall.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ type upcalls =
3838
dynastack_mark: ValueRef,
3939
dynastack_alloc: ValueRef,
4040
dynastack_free: ValueRef,
41+
alloc_c_stack: ValueRef,
42+
call_c_stack: ValueRef,
4143
rust_personality: ValueRef};
4244

4345
fn declare_upcalls(_tn: type_names, tydesc_type: TypeRef,
@@ -91,6 +93,9 @@ fn declare_upcalls(_tn: type_names, tydesc_type: TypeRef,
9193
d("dynastack_alloc_2", [T_size_t(), T_ptr(tydesc_type)],
9294
T_ptr(T_i8())),
9395
dynastack_free: d("dynastack_free", [T_ptr(T_i8())], T_void()),
96+
alloc_c_stack: dr("alloc_c_stack", [T_size_t()], T_ptr(T_i8())),
97+
call_c_stack: dr("call_c_stack", [T_ptr(T_i8()), T_ptr(T_i8())],
98+
T_void()),
9499
rust_personality: dr("rust_personality", [], T_i32())
95100
};
96101
}

0 commit comments

Comments
 (0)