Skip to content

Commit 2eed548

Browse files
committed
---
yaml --- r: 94732 b: refs/heads/try c: 16828bb h: refs/heads/master v: v3
1 parent a0ead41 commit 2eed548

File tree

5 files changed

+12
-8
lines changed

5 files changed

+12
-8
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
refs/heads/master: 0da105a8b7b6b1e0568e8ff20f6ff4b13cc7ecc2
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: a6d3e57dca68fde4effdda3e4ae2887aa535fcd6
5-
refs/heads/try: 75efa0725d720369c3ecb552dcc63a7bad07123a
5+
refs/heads/try: 16828bb1dc60a1d58500bb3cfc9a751339aa62ad
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c

branches/try/src/librustc/middle/trans/base.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3248,7 +3248,7 @@ pub fn trans_crate(sess: session::Session,
32483248
println!("n_static_tydescs: {}", ccx.stats.n_static_tydescs.get());
32493249
println!("n_glues_created: {}", ccx.stats.n_glues_created.get());
32503250
println!("n_null_glues: {}", ccx.stats.n_null_glues.get());
3251-
println!("n_real_glues: {}", ccx.stats.n_real_glues);
3251+
println!("n_real_glues: {}", ccx.stats.n_real_glues.get());
32523252

32533253
println!("n_fns: {}", ccx.stats.n_fns);
32543254
println!("n_monos: {}", ccx.stats.n_monos);

branches/try/src/librustc/middle/trans/common.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ pub struct Stats {
129129
n_static_tydescs: Cell<uint>,
130130
n_glues_created: Cell<uint>,
131131
n_null_glues: Cell<uint>,
132-
n_real_glues: uint,
132+
n_real_glues: Cell<uint>,
133133
n_fns: uint,
134134
n_monos: uint,
135135
n_inlines: uint,

branches/try/src/librustc/middle/trans/context.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ impl CrateContext {
214214
n_static_tydescs: Cell::new(0u),
215215
n_glues_created: Cell::new(0u),
216216
n_null_glues: Cell::new(0u),
217-
n_real_glues: 0u,
217+
n_real_glues: Cell::new(0u),
218218
n_fns: 0u,
219219
n_monos: 0u,
220220
n_inlines: 0u,

branches/try/src/librustc/middle/trans/glue.rs

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -715,7 +715,8 @@ pub fn emit_tydescs(ccx: &CrateContext) {
715715
}
716716
Some(v) => {
717717
unsafe {
718-
ccx.stats.n_real_glues += 1u;
718+
ccx.stats.n_real_glues.set(ccx.stats.n_real_glues.get() +
719+
1);
719720
llvm::LLVMConstPointerCast(v, glue_fn_ty.to_ref())
720721
}
721722
}
@@ -729,7 +730,8 @@ pub fn emit_tydescs(ccx: &CrateContext) {
729730
}
730731
Some(v) => {
731732
unsafe {
732-
ccx.stats.n_real_glues += 1u;
733+
ccx.stats.n_real_glues.set(ccx.stats.n_real_glues.get() +
734+
1);
733735
llvm::LLVMConstPointerCast(v, glue_fn_ty.to_ref())
734736
}
735737
}
@@ -743,7 +745,8 @@ pub fn emit_tydescs(ccx: &CrateContext) {
743745
}
744746
Some(v) => {
745747
unsafe {
746-
ccx.stats.n_real_glues += 1u;
748+
ccx.stats.n_real_glues.set(ccx.stats.n_real_glues.get() +
749+
1);
747750
llvm::LLVMConstPointerCast(v, glue_fn_ty.to_ref())
748751
}
749752
}
@@ -757,7 +760,8 @@ pub fn emit_tydescs(ccx: &CrateContext) {
757760
}
758761
Some(v) => {
759762
unsafe {
760-
ccx.stats.n_real_glues += 1u;
763+
ccx.stats.n_real_glues.set(ccx.stats.n_real_glues.get() +
764+
1);
761765
llvm::LLVMConstPointerCast(v, glue_fn_ty.to_ref())
762766
}
763767
}

0 commit comments

Comments
 (0)