Register queries with self profiler in rustc_interface

This commit is contained in:
Mark Rousskov 2019-11-12 11:44:01 -05:00
parent f696b21c5f
commit 2fd545485a
4 changed files with 13 additions and 2 deletions

View file

@ -108,6 +108,10 @@ pub fn create_session(
process_configure_mod,
);
sess.prof.register_queries(|profiler| {
rustc::ty::query::QueryName::register_with_profiler(&profiler);
});
let codegen_backend = get_codegen_backend(&sess);
let mut cfg = config::build_configuration(&sess, config::to_crate_config(cfg));