@@ -269,7 +269,7 @@ fn module_codegen(
269
269
) ,
270
270
) -> OngoingModuleCodegen {
271
271
let ( cgu_name, mut cx, mut module, codegened_functions) =
272
- tcx. prof . verbose_generic_activity_with_arg ( "codegen cgu" , cgu_name. as_str ( ) ) . run ( || {
272
+ tcx. prof . generic_activity_with_arg ( "codegen cgu" , cgu_name. as_str ( ) ) . run ( || {
273
273
let cgu = tcx. codegen_unit ( cgu_name) ;
274
274
let mono_items = cgu. items_in_deterministic_order ( tcx) ;
275
275
@@ -322,35 +322,24 @@ fn module_codegen(
322
322
} ) ;
323
323
324
324
OngoingModuleCodegen :: Async ( std:: thread:: spawn ( move || {
325
- cx. profiler . clone ( ) . verbose_generic_activity_with_arg ( "compile functions" , & * cgu_name) . run (
326
- || {
327
- cranelift_codegen:: timing:: set_thread_profiler ( Box :: new ( super :: MeasuremeProfiler (
328
- cx. profiler . clone ( ) ,
329
- ) ) ) ;
330
-
331
- let mut cached_context = Context :: new ( ) ;
332
- for codegened_func in codegened_functions {
333
- crate :: base:: compile_fn (
334
- & mut cx,
335
- & mut cached_context,
336
- & mut module,
337
- codegened_func,
338
- ) ;
339
- }
340
- } ,
341
- ) ;
325
+ cx. profiler . clone ( ) . generic_activity_with_arg ( "compile functions" , & * cgu_name) . run ( || {
326
+ cranelift_codegen:: timing:: set_thread_profiler ( Box :: new ( super :: MeasuremeProfiler (
327
+ cx. profiler . clone ( ) ,
328
+ ) ) ) ;
329
+
330
+ let mut cached_context = Context :: new ( ) ;
331
+ for codegened_func in codegened_functions {
332
+ crate :: base:: compile_fn ( & mut cx, & mut cached_context, & mut module, codegened_func) ;
333
+ }
334
+ } ) ;
342
335
343
- let global_asm_object_file = cx
344
- . profiler
345
- . verbose_generic_activity_with_arg ( "compile assembly" , & * cgu_name)
346
- . run ( || {
336
+ let global_asm_object_file =
337
+ cx. profiler . generic_activity_with_arg ( "compile assembly" , & * cgu_name) . run ( || {
347
338
crate :: global_asm:: compile_global_asm ( & global_asm_config, & cgu_name, & cx. global_asm )
348
339
} ) ?;
349
340
350
- let codegen_result = cx
351
- . profiler
352
- . verbose_generic_activity_with_arg ( "write object file" , & * cgu_name)
353
- . run ( || {
341
+ let codegen_result =
342
+ cx. profiler . generic_activity_with_arg ( "write object file" , & * cgu_name) . run ( || {
354
343
emit_cgu (
355
344
& global_asm_config. output_filenames ,
356
345
& cx. profiler ,
0 commit comments