Skip to content

Commit

Permalink
replace function def_path with sym
Browse files Browse the repository at this point in the history
  • Loading branch information
csmoe committed Sep 2, 2020
1 parent 47c32ca commit c648e73
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/librustc_codegen_llvm/attributes.rs
Expand Up @@ -256,8 +256,8 @@ pub fn from_fn_attrs(cx: &CodegenCx<'ll, 'tcx>, llfn: &'ll Value, instance: ty::
match codegen_fn_attrs.inline {
attributes::InlineAttr::Hint | attributes::InlineAttr::Always => {
if cx.tcx.sess.opts.debugging_opts.print_inline_times {
let function = cx.tcx.def_path_str_with_substs(instance.def_id(), instance.substs);
self.tcx.sess.code_stats.record_function_inline_times(function);
let function = tcx.symbol_name(instance).name.as_str();
cx.tcx.sess.code_stats.record_function_inline_times(function);
}
}
_ => ()
Expand Down

0 comments on commit c648e73

Please sign in to comment.