aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBrian Anderson <[email protected]>2011-03-31 02:07:25 -0400
committerGraydon Hoare <[email protected]>2011-03-31 14:52:30 +0000
commit607fa14960cbba1a993fa89acc0bcc02e900cecc (patch)
tree6aecaee60a04e8aa88b6c06ad89c56872499a949 /src
parentRestore scope block contexts to the translation of expr_block. (diff)
downloadrust-607fa14960cbba1a993fa89acc0bcc02e900cecc.tar.xz
rust-607fa14960cbba1a993fa89acc0bcc02e900cecc.zip
Rename incr_all_refcnts to take_ty, to match drop_ty
Diffstat (limited to 'src')
-rw-r--r--src/comp/middle/trans.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/comp/middle/trans.rs b/src/comp/middle/trans.rs
index a32faddf..3fa5b699 100644
--- a/src/comp/middle/trans.rs
+++ b/src/comp/middle/trans.rs
@@ -1668,7 +1668,7 @@ fn make_take_glue(@block_ctxt cx, ValueRef v, @ty.t t) -> result {
} else if (ty.type_is_structural(t)) {
ret iter_structural_ty(cx, v, t,
- bind incr_all_refcnts(_, _, _));
+ bind take_ty(_, _, _));
}
ret res(cx, C_nil());
}
@@ -2315,7 +2315,7 @@ fn call_tydesc_glue(@block_ctxt cx, ValueRef v, @ty.t t, int field) {
call_tydesc_glue_full(td.bcx, v, td.val, field);
}
-fn incr_all_refcnts(@block_ctxt cx,
+fn take_ty(@block_ctxt cx,
ValueRef v,
@ty.t t) -> result {
if (!ty.type_is_scalar(t)) {
@@ -2397,7 +2397,7 @@ fn copy_ty(@block_ctxt cx,
ret res(cx, C_nil());
} else if (ty.type_is_boxed(t)) {
- auto r = incr_all_refcnts(cx, src, t);
+ auto r = take_ty(cx, src, t);
if (action == DROP_EXISTING) {
r = drop_ty(r.bcx, r.bcx.build.Load(dst), t);
}
@@ -2405,7 +2405,7 @@ fn copy_ty(@block_ctxt cx,
} else if (ty.type_is_structural(t) ||
ty.type_has_dynamic_size(t)) {
- auto r = incr_all_refcnts(cx, src, t);
+ auto r = take_ty(cx, src, t);
if (action == DROP_EXISTING) {
r = drop_ty(r.bcx, dst, t);
}