librustc: De-@mut n_monos in the stats

This commit is contained in:
Patrick Walton 2013-12-22 13:46:59 -08:00
parent 38572f4981
commit 8c7804ffac
4 changed files with 4 additions and 4 deletions

View File

@ -3251,7 +3251,7 @@ pub fn trans_crate(sess: session::Session,
println!("n_real_glues: {}", ccx.stats.n_real_glues.get());
println!("n_fns: {}", ccx.stats.n_fns.get());
println!("n_monos: {}", ccx.stats.n_monos);
println!("n_monos: {}", ccx.stats.n_monos.get());
println!("n_inlines: {}", ccx.stats.n_inlines);
println!("n_closures: {}", ccx.stats.n_closures);
println("fn stats:");

View File

@ -131,7 +131,7 @@ pub struct Stats {
n_null_glues: Cell<uint>,
n_real_glues: Cell<uint>,
n_fns: Cell<uint>,
n_monos: uint,
n_monos: Cell<uint>,
n_inlines: uint,
n_closures: uint,
n_llvm_insns: uint,

View File

@ -216,7 +216,7 @@ impl CrateContext {
n_null_glues: Cell::new(0u),
n_real_glues: Cell::new(0u),
n_fns: Cell::new(0u),
n_monos: 0u,
n_monos: Cell::new(0u),
n_inlines: 0u,
n_closures: 0u,
n_llvm_insns: 0u,

View File

@ -182,7 +182,7 @@ pub fn monomorphic_fn(ccx: @CrateContext,
_ => fail!("expected bare rust fn or an intrinsic")
};
ccx.stats.n_monos += 1;
ccx.stats.n_monos.set(ccx.stats.n_monos.get() + 1);
let depth;
{