rustc: Translate functions only once

This commit is contained in:
Patrick Walton 2011-07-20 18:43:05 -07:00
parent 1b9dbcc5b4
commit 142ff3bb4e

View File

@ -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();