@@ -18,7 +18,6 @@ use rustc_target::abi::{call::FnAbi, HasDataLayout, PointeeInfo, Size, TargetDat
1818use rustc_target:: spec:: { HasTargetSpec , Target , TlsModel } ;
1919
2020use crate :: callee:: get_fn;
21- use crate :: declare:: mangle_name;
2221
2322#[ derive( Clone ) ]
2423pub struct FuncSig < ' gcc > {
@@ -96,7 +95,6 @@ pub struct CodegenCx<'gcc, 'tcx> {
9695
9796 /// A counter that is used for generating local symbol names
9897 local_gen_sym_counter : Cell < usize > ,
99- pub global_gen_sym_counter : Cell < usize > ,
10098
10199 eh_personality : Cell < Option < RValue < ' gcc > > > ,
102100
@@ -221,7 +219,6 @@ impl<'gcc, 'tcx> CodegenCx<'gcc, 'tcx> {
221219 struct_types : Default :: default ( ) ,
222220 types_with_fields_to_set : Default :: default ( ) ,
223221 local_gen_sym_counter : Cell :: new ( 0 ) ,
224- global_gen_sym_counter : Cell :: new ( 0 ) ,
225222 eh_personality : Cell :: new ( None ) ,
226223 pointee_infos : Default :: default ( ) ,
227224 structs_as_pointer : Default :: default ( ) ,
@@ -503,11 +500,6 @@ impl<'b, 'tcx> CodegenCx<'b, 'tcx> {
503500 }
504501}
505502
506- pub fn unit_name < ' tcx > ( codegen_unit : & CodegenUnit < ' tcx > ) -> String {
507- let name = & codegen_unit. name ( ) . to_string ( ) ;
508- mangle_name ( & name. replace ( '-' , "_" ) )
509- }
510-
511503fn to_gcc_tls_mode ( tls_model : TlsModel ) -> gccjit:: TlsModel {
512504 match tls_model {
513505 TlsModel :: GeneralDynamic => gccjit:: TlsModel :: GlobalDynamic ,
0 commit comments