1
Fork 0

Remove verbose_generic_activity_with_arg

This commit is contained in:
John Kåre Alsaker 2023-09-10 13:15:46 +02:00
parent 01ce2d0ea1
commit f742d88326
5 changed files with 20 additions and 48 deletions

View file

@ -121,7 +121,10 @@ fn run_passes_inner<'tcx>(
validate_body(tcx, body, format!("before pass {name}"));
}
tcx.sess.time(name, || pass.run_pass(tcx, body));
tcx.sess
.prof
.generic_activity_with_arg("mir_pass", name)
.run(|| pass.run_pass(tcx, body));
if dump_enabled {
dump_mir_for_pass(tcx, body, &name, true);