Skip to content

Commit 83f307c

Browse files
committed
---
yaml --- r: 94733 b: refs/heads/try c: 38572f4 h: refs/heads/master i: 94731: a0ead41 v: v3
1 parent 2eed548 commit 83f307c

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
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: 16828bb1dc60a1d58500bb3cfc9a751339aa62ad
5+
refs/heads/try: 38572f49819ea76b207d4c67039ecb113e214bf0
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: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ impl<'a> Drop for StatRecorder<'a> {
166166
self.ccx.stats.fn_stats.push((self.name.to_owned(),
167167
elapsed,
168168
iend - self.istart));
169-
self.ccx.stats.n_fns += 1;
169+
self.ccx.stats.n_fns.set(self.ccx.stats.n_fns.get() + 1);
170170
// Reset LLVM insn count to avoid compound costs.
171171
self.ccx.stats.n_llvm_insns = self.istart;
172172
}
@@ -3250,7 +3250,7 @@ pub fn trans_crate(sess: session::Session,
32503250
println!("n_null_glues: {}", ccx.stats.n_null_glues.get());
32513251
println!("n_real_glues: {}", ccx.stats.n_real_glues.get());
32523252

3253-
println!("n_fns: {}", ccx.stats.n_fns);
3253+
println!("n_fns: {}", ccx.stats.n_fns.get());
32543254
println!("n_monos: {}", ccx.stats.n_monos);
32553255
println!("n_inlines: {}", ccx.stats.n_inlines);
32563256
println!("n_closures: {}", ccx.stats.n_closures);

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ pub struct Stats {
130130
n_glues_created: Cell<uint>,
131131
n_null_glues: Cell<uint>,
132132
n_real_glues: Cell<uint>,
133-
n_fns: uint,
133+
n_fns: Cell<uint>,
134134
n_monos: uint,
135135
n_inlines: uint,
136136
n_closures: uint,

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ impl CrateContext {
215215
n_glues_created: Cell::new(0u),
216216
n_null_glues: Cell::new(0u),
217217
n_real_glues: Cell::new(0u),
218-
n_fns: 0u,
218+
n_fns: Cell::new(0u),
219219
n_monos: 0u,
220220
n_inlines: 0u,
221221
n_closures: 0u,

0 commit comments

Comments
 (0)