File tree Expand file tree Collapse file tree 1 file changed +5
-10
lines changed Expand file tree Collapse file tree 1 file changed +5
-10
lines changed Original file line number Diff line number Diff line change @@ -280,25 +280,20 @@ fn module_codegen(
280
280
cgu. is_primary ( ) ,
281
281
) ;
282
282
283
- let global_asm_object_file = match crate :: global_asm:: compile_global_asm (
283
+ let global_asm_object_file = crate :: global_asm:: compile_global_asm (
284
284
& global_asm_config,
285
285
cgu. name ( ) . as_str ( ) ,
286
286
& cx. global_asm ,
287
- ) {
288
- Ok ( global_asm_object_file) => global_asm_object_file,
289
- Err ( err) => tcx. sess . fatal ( & err) ,
290
- } ;
287
+ ) ?;
291
288
292
- let debug_context = cx. debug_context ;
293
- let unwind_context = cx. unwind_context ;
294
289
tcx. sess . time ( "write object file" , || {
295
290
emit_cgu (
296
291
& global_asm_config. output_filenames ,
297
- & tcx . sess . prof ,
292
+ & cx . profiler ,
298
293
cgu. name ( ) . as_str ( ) . to_string ( ) ,
299
294
module,
300
- debug_context,
301
- unwind_context,
295
+ cx . debug_context ,
296
+ cx . unwind_context ,
302
297
global_asm_object_file,
303
298
)
304
299
} )
You can’t perform that action at this time.
0 commit comments