mirror of
https://github.com/rust-lang/rust.git
synced 2025-01-11 07:21:51 +00:00
rustc: Translate functions only once
This commit is contained in:
parent
1b9dbcc5b4
commit
142ff3bb4e
@ -7076,6 +7076,7 @@ fn trans_fn(@local_ctxt cx, &span sp, &ast::_fn f, ValueRef llfndecl,
|
||||
ast::node_id id) {
|
||||
if !cx.ccx.sess.get_opts().stats {
|
||||
trans_fn_inner(cx, sp, f, llfndecl, ty_self, ty_params, id);
|
||||
ret;
|
||||
}
|
||||
|
||||
auto start = time::get_time();
|
||||
|
Loading…
Reference in New Issue
Block a user