Skip to content

Commit 496d348

Browse files
committed
---
yaml --- r: 3898 b: refs/heads/master c: 3d353f7 h: refs/heads/master v: v3
1 parent b01c862 commit 496d348

File tree

3 files changed

+85
-85
lines changed

3 files changed

+85
-85
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
---
2-
refs/heads/master: 39151f2ad8d18554af1d6787bae0b02345e1d90b
2+
refs/heads/master: 3d353f76a9057fda207746d7c5a30729e65a70ba

trunk/src/comp/back/upcall.rs

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ import trans::T_ptr;
1717
import trans::T_size_t;
1818
import trans::T_str;
1919
import trans::T_taskptr;
20-
import trans::T_tydesc;
2120
import trans::T_void;
2221
import lib::llvm::type_names;
2322
import lib::llvm::llvm::ModuleRef;
@@ -62,16 +61,17 @@ type upcalls =
6261
ValueRef ivec_resize_shared,
6362
ValueRef ivec_spill_shared);
6463

65-
fn declare_upcalls(type_names tn, ModuleRef llmod) -> @upcalls {
66-
fn decl(type_names tn, ModuleRef llmod, str name, vec[TypeRef] tys,
67-
TypeRef rv) -> ValueRef {
64+
fn declare_upcalls(type_names tn, TypeRef tydesc_type, ModuleRef llmod)
65+
-> @upcalls {
66+
fn decl(type_names tn, TypeRef tydesc_type, ModuleRef llmod, str name,
67+
vec[TypeRef] tys, TypeRef rv) -> ValueRef {
6868
let TypeRef[] arg_tys = ~[T_taskptr(tn)];
6969
for (TypeRef t in tys) { arg_tys += ~[t]; }
7070
auto fn_ty = T_fn(arg_tys, rv);
7171
ret trans::decl_cdecl_fn(llmod, "upcall_" + name, fn_ty);
7272
}
73-
auto dv = bind decl(tn, llmod, _, _, T_void());
74-
auto d = bind decl(tn, llmod, _, _, _);
73+
auto dv = bind decl(tn, tydesc_type, llmod, _, _, T_void());
74+
auto d = bind decl(tn, tydesc_type, llmod, _, _, _);
7575
// FIXME: Sigh:.. remove this when I fix the typechecker pushdown.
7676
// --pcwalton
7777

@@ -98,27 +98,27 @@ fn declare_upcalls(type_names tn, ModuleRef llmod) -> @upcalls {
9898
_fail=dv("fail", [T_ptr(T_i8()), T_ptr(T_i8()), T_size_t()]),
9999
kill=dv("kill", [T_taskptr(tn)]),
100100
exit=dv("exit", empty_vec),
101-
malloc=d("malloc", [T_size_t(), T_ptr(T_tydesc(tn))],
101+
malloc=d("malloc", [T_size_t(), T_ptr(tydesc_type)],
102102
T_ptr(T_i8())),
103103
free=dv("free", [T_ptr(T_i8()), T_int()]),
104104
shared_malloc=d("shared_malloc",
105-
[T_size_t(), T_ptr(T_tydesc(tn))], T_ptr(T_i8())),
105+
[T_size_t(), T_ptr(tydesc_type)], T_ptr(T_i8())),
106106
shared_free=dv("shared_free", [T_ptr(T_i8())]),
107107
mark=d("mark", [T_ptr(T_i8())], T_int()),
108108
new_str=d("new_str", [T_ptr(T_i8()), T_size_t()],
109109
T_ptr(T_str())),
110-
dup_str=d("dup_str", [T_taskptr(tn), T_ptr(T_str())],
110+
dup_str=d("dup_str", [T_taskptr(tn), T_ptr(T_str())],
111111
T_ptr(T_str())),
112-
new_vec=d("new_vec", [T_size_t(), T_ptr(T_tydesc(tn))],
112+
new_vec=d("new_vec", [T_size_t(), T_ptr(tydesc_type)],
113113
T_opaque_vec_ptr()),
114114
vec_append=d("vec_append",
115-
[T_ptr(T_tydesc(tn)), T_ptr(T_tydesc(tn)),
115+
[T_ptr(tydesc_type), T_ptr(tydesc_type),
116116
T_ptr(T_opaque_vec_ptr()), T_opaque_vec_ptr(),
117117
T_bool()], T_void()),
118118
get_type_desc=d("get_type_desc",
119119
[T_ptr(T_nil()), T_size_t(), T_size_t(),
120-
T_size_t(), T_ptr(T_ptr(T_tydesc(tn)))],
121-
T_ptr(T_tydesc(tn))),
120+
T_size_t(), T_ptr(T_ptr(tydesc_type))],
121+
T_ptr(tydesc_type)),
122122
new_task=d("new_task", [T_ptr(T_str())], T_taskptr(tn)),
123123
start_task=d("start_task",
124124
[T_taskptr(tn), T_int(), T_int(), T_size_t()],

0 commit comments

Comments
 (0)