aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGraydon Hoare <[email protected]>2011-02-02 15:25:53 -0800
committerGraydon Hoare <[email protected]>2011-02-02 15:25:53 -0800
commitc42a2d2bfb9cf8b4b44f28942d2d3f2838611c19 (patch)
treed1fa147eb2bfe3ad9ed7596d2dde0d39b16738b9
parentAdd trace and trap helpers to trans for low level diagnostics. (diff)
downloadrust-c42a2d2bfb9cf8b4b44f28942d2d3f2838611c19.tar.xz
rust-c42a2d2bfb9cf8b4b44f28942d2d3f2838611c19.zip
Change decl_upcall to decl_upcall_glue, more correct name.
-rw-r--r--src/comp/middle/trans.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/comp/middle/trans.rs b/src/comp/middle/trans.rs
index d091e3ad..dff95974 100644
--- a/src/comp/middle/trans.rs
+++ b/src/comp/middle/trans.rs
@@ -612,7 +612,7 @@ fn decl_glue(ModuleRef llmod, str s) -> ValueRef {
ret decl_cdecl_fn(llmod, s, T_fn(vec(T_taskptr()), T_void()));
}
-fn decl_upcall(ModuleRef llmod, uint _n) -> ValueRef {
+fn decl_upcall_glue(ModuleRef llmod, uint _n) -> ValueRef {
// It doesn't actually matter what type we come up with here, at the
// moment, as we cast the upcall function pointers to int before passing
// them to the indirect upcall-invocation glue. But eventually we'd like
@@ -4324,7 +4324,7 @@ fn make_glues(ModuleRef llmod) -> @glue_fns {
T_fn(vec(T_taskptr()), T_void())),
upcall_glues =
- _vec.init_fn[ValueRef](bind decl_upcall(llmod, _),
+ _vec.init_fn[ValueRef](bind decl_upcall_glue(llmod, _),
abi.n_upcall_glues as uint),
no_op_type_glue = make_no_op_type_glue(llmod),
memcpy_glue = make_memcpy_glue(llmod),