about summary refs log tree commit diff
path: root/src/rt/rust_task.cpp
diff options
context:
space:
mode:
authorMarijn Haverbeke <marijnh@gmail.com>2011-10-14 20:54:11 +0200
committerMarijn Haverbeke <marijnh@gmail.com>2011-10-20 13:15:09 +0200
commite927df17f7f9c150fcbfd566927ad29ff5eb6f15 (patch)
tree0811b3951844240012eac5d08a59298474b86334 /src/rt/rust_task.cpp
parent243c5c34790eaba815c2786009b10c31bc04c63d (diff)
downloadrust-e927df17f7f9c150fcbfd566927ad29ff5eb6f15.tar.gz
rust-e927df17f7f9c150fcbfd566927ad29ff5eb6f15.zip
Remove spawn_wrap and main_wrap kludges
This isn't needed now that our functions are cdecl (and was apparently
only still working by accident).

Issue #992
Diffstat (limited to 'src/rt/rust_task.cpp')
-rw-r--r--src/rt/rust_task.cpp16
1 files changed, 0 insertions, 16 deletions
diff --git a/src/rt/rust_task.cpp b/src/rt/rust_task.cpp
index 97d68e6be39..a764856343b 100644
--- a/src/rt/rust_task.cpp
+++ b/src/rt/rust_task.cpp
@@ -180,22 +180,6 @@ void task_start_wrapper(spawn_args *a)
     }
 }
 
-/* We spawn a rust (fastcc) function through a CDECL function
-   defined in main.ll, which is built as part of each crate. These accessors
-   allow each rust program to install that function at startup */
-
-uintptr_t spawn_wrapper;
-
-extern "C" CDECL void
-set_spawn_wrapper(uintptr_t f) {
-    spawn_wrapper = f;
-}
-
-extern "C" CDECL uintptr_t
-get_spawn_wrapper() {
-    return spawn_wrapper;
-}
-
 void
 rust_task::start(uintptr_t spawnee_fn,
                  uintptr_t args,