From fe90159b86c0a044ce0bcef534e4800ea35ba01b Mon Sep 17 00:00:00 2001 From: Rafael Ávila de Espíndola Date: Tue, 24 May 2011 15:51:22 -0400 Subject: "constant propagate" rust_new_exit_task_glue to its only use. --- src/rt/rust_task.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/rt/rust_task.cpp') diff --git a/src/rt/rust_task.cpp b/src/rt/rust_task.cpp index 13295f5ae7d..09665e11298 100644 --- a/src/rt/rust_task.cpp +++ b/src/rt/rust_task.cpp @@ -135,13 +135,13 @@ rust_task::~rust_task() cache->deref(); } +extern "C" void rust_new_exit_task_glue(); + void -rust_task::start(uintptr_t exit_task_glue, - uintptr_t spawnee_fn, +rust_task::start(uintptr_t spawnee_fn, uintptr_t args, size_t callsz) { - LOGPTR(dom, "exit-task glue", exit_task_glue); LOGPTR(dom, "from spawnee", spawnee_fn); // Set sp to last uintptr_t-sized cell of segment @@ -184,7 +184,7 @@ rust_task::start(uintptr_t exit_task_glue, *spp-- = (uintptr_t) 0x0; // retp - *spp-- = (uintptr_t) exit_task_glue; + *spp-- = (uintptr_t) rust_new_exit_task_glue; for (size_t j = 0; j < n_callee_saves; ++j) { *spp-- = (uintptr_t)NULL; -- cgit 1.4.1-3-g733a5