librustc: De-@mut n_inlines in the stats
This commit is contained in:
parent
8c7804ffac
commit
c010d08cd5
4 changed files with 6 additions and 5 deletions
|
|
@ -3252,7 +3252,7 @@ pub fn trans_crate(sess: session::Session,
|
|||
|
||||
println!("n_fns: {}", ccx.stats.n_fns.get());
|
||||
println!("n_monos: {}", ccx.stats.n_monos.get());
|
||||
println!("n_inlines: {}", ccx.stats.n_inlines);
|
||||
println!("n_inlines: {}", ccx.stats.n_inlines.get());
|
||||
println!("n_closures: {}", ccx.stats.n_closures);
|
||||
println("fn stats:");
|
||||
|
||||
|
|
|
|||
|
|
@ -132,7 +132,7 @@ pub struct Stats {
|
|||
n_real_glues: Cell<uint>,
|
||||
n_fns: Cell<uint>,
|
||||
n_monos: Cell<uint>,
|
||||
n_inlines: uint,
|
||||
n_inlines: Cell<uint>,
|
||||
n_closures: uint,
|
||||
n_llvm_insns: uint,
|
||||
llvm_insn_ctxt: ~[~str],
|
||||
|
|
|
|||
|
|
@ -217,7 +217,7 @@ impl CrateContext {
|
|||
n_real_glues: Cell::new(0u),
|
||||
n_fns: Cell::new(0u),
|
||||
n_monos: Cell::new(0u),
|
||||
n_inlines: 0u,
|
||||
n_inlines: Cell::new(0u),
|
||||
n_closures: 0u,
|
||||
n_llvm_insns: 0u,
|
||||
llvm_insn_ctxt: ~[],
|
||||
|
|
|
|||
|
|
@ -64,7 +64,7 @@ pub fn maybe_instantiate_inline(ccx: @CrateContext, fn_id: ast::DefId)
|
|||
external_srcs.get().insert(item.id, fn_id);
|
||||
}
|
||||
|
||||
ccx.stats.n_inlines += 1;
|
||||
ccx.stats.n_inlines.set(ccx.stats.n_inlines.get() + 1);
|
||||
trans_item(ccx, item);
|
||||
|
||||
// We're bringing an external global into this crate, but we don't
|
||||
|
|
@ -146,7 +146,8 @@ pub fn maybe_instantiate_inline(ccx: @CrateContext, fn_id: ast::DefId)
|
|||
external_srcs.get().insert(mth.id, fn_id);
|
||||
}
|
||||
|
||||
ccx.stats.n_inlines += 1;
|
||||
ccx.stats.n_inlines.set(ccx.stats.n_inlines.get() + 1);
|
||||
|
||||
// If this is a default method, we can't look up the
|
||||
// impl type. But we aren't going to translate anyways, so don't.
|
||||
if is_provided { return local_def(mth.id); }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue