message: Move finalize CodegenCx timer out of codegen mono items timer
diff: @@ -69,7 +69,6 @@ pub(super) fn run_jit(tcx: TyCtxt<'_>) -> ! {
  let mut cx = crate::CodegenCx::new(tcx, jit_module, false, false);
  - let (mut jit_module, global_asm, _debug, mut unwind_context) =
  super::time(tcx, "codegen mono items", || {
  super::predefine_mono_items(&mut cx, &mono_items);
  for (mono_item, (linkage, visibility)) in mono_items {
  @@ -90,11 +89,16 @@ pub(super) fn run_jit(tcx: TyCtxt<'_>) -> ! {
  }
  }
  }
  - tcx.sess.time("finalize CodegenCx", || cx.finalize())
  });
  +
  + let (mut jit_module, global_asm, _debug, mut unwind_context) =
  + tcx.sess.time("finalize CodegenCx", || cx.finalize());
  + jit_module.finalize_definitions();
  +
  if !global_asm.is_empty() {
  tcx.sess.fatal("Inline asm is not supported in JIT mode");
  }
  +
  crate::main_shim::maybe_create_entry_wrapper(tcx, &mut jit_module, &mut unwind_context, true);
  crate::allocator::codegen(tcx, &mut jit_module, &mut unwind_context);
  