@@ -252,7 +252,7 @@ impl DebugInfoMethods<'tcx> for CodegenCx<'ll, 'tcx> {
252
252
253
253
let function_type_metadata = unsafe {
254
254
let fn_signature = get_function_signature ( self , fn_abi) ;
255
- llvm:: LLVMRustDIBuilderCreateSubroutineType ( DIB ( self ) , file_metadata , fn_signature)
255
+ llvm:: LLVMRustDIBuilderCreateSubroutineType ( DIB ( self ) , fn_signature)
256
256
} ;
257
257
258
258
// Find the enclosing function, in case this is a closure.
@@ -265,8 +265,7 @@ impl DebugInfoMethods<'tcx> for CodegenCx<'ll, 'tcx> {
265
265
// name if necessary.
266
266
let generics = self . tcx ( ) . generics_of ( enclosing_fn_def_id) ;
267
267
let substs = instance. substs . truncate_to ( self . tcx ( ) , generics) ;
268
- let template_parameters =
269
- get_template_parameters ( self , & generics, substs, file_metadata, & mut name) ;
268
+ let template_parameters = get_template_parameters ( self , & generics, substs, & mut name) ;
270
269
271
270
// Get the linkage_name, which is just the symbol name
272
271
let linkage_name = mangled_name_of_instance ( self , instance) ;
@@ -388,7 +387,6 @@ impl DebugInfoMethods<'tcx> for CodegenCx<'ll, 'tcx> {
388
387
cx : & CodegenCx < ' ll , ' tcx > ,
389
388
generics : & ty:: Generics ,
390
389
substs : SubstsRef < ' tcx > ,
391
- file_metadata : & ' ll DIFile ,
392
390
name_to_append_suffix_to : & mut String ,
393
391
) -> & ' ll DIArray {
394
392
if substs. types ( ) . next ( ) . is_none ( ) {
@@ -429,9 +427,6 @@ impl DebugInfoMethods<'tcx> for CodegenCx<'ll, 'tcx> {
429
427
name. as_ptr ( ) . cast ( ) ,
430
428
name. len ( ) ,
431
429
actual_type_metadata,
432
- file_metadata,
433
- 0 ,
434
- 0 ,
435
430
) )
436
431
} )
437
432
} else {
0 commit comments