Move some code from Compiler::enter to GlobalCtxt::finish
This commit is contained in:
parent
bec24a25cd
commit
8e9bbc899c
11 changed files with 64 additions and 32 deletions
|
@ -222,3 +222,9 @@ pub fn query_system<'tcx>(
|
|||
}
|
||||
|
||||
rustc_middle::rustc_query_append! { define_queries! }
|
||||
|
||||
pub fn provide(providers: &mut rustc_middle::util::Providers) {
|
||||
providers.hooks.alloc_self_profile_query_strings =
|
||||
|tcx| alloc_self_profile_query_strings(tcx.tcx);
|
||||
providers.hooks.query_key_hash_verify_all = |tcx| query_key_hash_verify_all(tcx.tcx);
|
||||
}
|
||||
|
|
|
@ -252,6 +252,8 @@ pub fn alloc_self_profile_query_strings(tcx: TyCtxt<'_>) {
|
|||
return;
|
||||
}
|
||||
|
||||
let _prof_timer = tcx.sess.prof.generic_activity("self_profile_alloc_query_strings");
|
||||
|
||||
let mut string_cache = QueryKeyStringCache::new();
|
||||
|
||||
for alloc in super::ALLOC_SELF_PROFILE_QUERY_STRINGS.iter() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue