diff options
| author | Brian Anderson <banderson@mozilla.com> | 2012-05-08 16:47:18 -0700 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2012-05-30 21:23:33 -0700 |
| commit | 508ccca014fcc3a8ef241868ea05e36058b3e61c (patch) | |
| tree | 7c6d2e53921eff3bf172bf16d6de8f3e76e2033c /src/rustc/back | |
| parent | 6d37c90ce638f6bbf2b9abdc6625fcb1d8887bfe (diff) | |
| download | rust-508ccca014fcc3a8ef241868ea05e36058b3e61c.tar.gz rust-508ccca014fcc3a8ef241868ea05e36058b3e61c.zip | |
rt: Add upcall_exchange_malloc/free
Diffstat (limited to 'src/rustc/back')
| -rw-r--r-- | src/rustc/back/upcall.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/rustc/back/upcall.rs b/src/rustc/back/upcall.rs index 7cc71fca0b2..ec78b5bb946 100644 --- a/src/rustc/back/upcall.rs +++ b/src/rustc/back/upcall.rs @@ -12,6 +12,8 @@ type upcalls = trace: ValueRef, malloc: ValueRef, free: ValueRef, + exchange_malloc: ValueRef, + exchange_free: ValueRef, validate_box: ValueRef, shared_malloc: ValueRef, shared_free: ValueRef, @@ -62,6 +64,11 @@ fn declare_upcalls(targ_cfg: @session::config, T_ptr(T_i8()))), free: nothrow(dv("free", [T_ptr(T_i8())])), + exchange_malloc: + nothrow(d("exchange_malloc", [T_ptr(tydesc_type)], + T_ptr(T_i8()))), + exchange_free: + nothrow(dv("exchange_free", [T_ptr(T_i8())])), validate_box: nothrow(dv("validate_box", [T_ptr(T_i8())])), shared_malloc: |
