Skip to content

Commit 98c1daa

Browse files
committed
---
yaml --- r: 97145 b: refs/heads/dist-snap c: 38572f4 h: refs/heads/master i: 97143: a480520 v: v3
1 parent e51ff4a commit 98c1daa

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
@@ -6,7 +6,7 @@ refs/heads/try: c274a6888410ce3e357e014568b43310ed787d36
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c
9-
refs/heads/dist-snap: 16828bb1dc60a1d58500bb3cfc9a751339aa62ad
9+
refs/heads/dist-snap: 38572f49819ea76b207d4c67039ecb113e214bf0
1010
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1111
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
1212
refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0

branches/dist-snap/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/dist-snap/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/dist-snap/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)