diff options
| author | Brian Anderson <andersrb@gmail.com> | 2011-03-31 02:07:25 -0400 |
|---|---|---|
| committer | Graydon Hoare <graydon@mozilla.com> | 2011-03-31 14:52:30 +0000 |
| commit | 607fa14960cbba1a993fa89acc0bcc02e900cecc (patch) | |
| tree | 6aecaee60a04e8aa88b6c06ad89c56872499a949 /src | |
| parent | b0b72ab47228f3eada3077f1eaae15ae53006d1d (diff) | |
| download | rust-607fa14960cbba1a993fa89acc0bcc02e900cecc.tar.gz 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.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/comp/middle/trans.rs b/src/comp/middle/trans.rs index a32faddf8e5..3fa5b699749 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); } |
