]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc_codegen_ssa/base.rs
Initial support for recording query keys in self-profiling data.
[rust.git] / src / librustc_codegen_ssa / base.rs
index 8087db9fabc2f1dc1a42b3f07946570ff31d99ee..857aa9c1bcc2e7f09406a4b3c89c0e9273322706 100644 (file)
@@ -722,10 +722,10 @@ fn finalize_tcx(tcx: TyCtxt<'_>) {
 
     // We assume that no queries are run past here. If there are new queries
     // after this point, they'll show up as "<unknown>" in self-profiling data.
-    tcx.prof.with_profiler(|profiler| {
+    {
         let _prof_timer = tcx.prof.generic_activity("self_profile_alloc_query_strings");
-        tcx.queries.allocate_self_profile_query_strings(profiler);
-    });
+        tcx.alloc_self_profile_query_strings();
+    }
 }
 
 impl CrateInfo {