@@ -252,7 +252,7 @@ impl DebugInfoMethods<'tcx> for CodegenCx<'ll, 'tcx> {
252252
253253 let function_type_metadata = unsafe {
254254 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)
256256 } ;
257257
258258 // Find the enclosing function, in case this is a closure.
@@ -265,8 +265,7 @@ impl DebugInfoMethods<'tcx> for CodegenCx<'ll, 'tcx> {
265265 // name if necessary.
266266 let generics = self . tcx ( ) . generics_of ( enclosing_fn_def_id) ;
267267 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) ;
270269
271270 // Get the linkage_name, which is just the symbol name
272271 let linkage_name = mangled_name_of_instance ( self , instance) ;
@@ -388,7 +387,6 @@ impl DebugInfoMethods<'tcx> for CodegenCx<'ll, 'tcx> {
388387 cx : & CodegenCx < ' ll , ' tcx > ,
389388 generics : & ty:: Generics ,
390389 substs : SubstsRef < ' tcx > ,
391- file_metadata : & ' ll DIFile ,
392390 name_to_append_suffix_to : & mut String ,
393391 ) -> & ' ll DIArray {
394392 if substs. types ( ) . next ( ) . is_none ( ) {
@@ -429,9 +427,6 @@ impl DebugInfoMethods<'tcx> for CodegenCx<'ll, 'tcx> {
429427 name. as_ptr ( ) . cast ( ) ,
430428 name. len ( ) ,
431429 actual_type_metadata,
432- file_metadata,
433- 0 ,
434- 0 ,
435430 ) )
436431 } )
437432 } else {
0 commit comments