@@ -5,9 +5,12 @@ use gccjit::{Struct, Type};
55use rustc_middle:: bug;
66use rustc_middle:: ty:: layout:: { LayoutOf , TyAndLayout } ;
77use rustc_middle:: ty:: print:: with_no_trimmed_paths;
8- use rustc_target:: abi:: { self , Abi , Align , F16 , F128 , F32 , F64 , FieldsShape , Int , Integer , Pointer , PointeeInfo , Size , TyAbiInterface , Variants } ;
98use rustc_middle:: ty:: { self , Ty , TypeVisitableExt } ;
109use rustc_target:: abi:: call:: { CastTarget , FnAbi , Reg } ;
10+ use rustc_target:: abi:: {
11+ self , Abi , Align , FieldsShape , Int , Integer , PointeeInfo , Pointer , Size , TyAbiInterface ,
12+ Variants , F128 , F16 , F32 , F64 ,
13+ } ;
1114
1215use crate :: abi:: { FnAbiGcc , FnAbiGccExt , GccType } ;
1316use crate :: context:: CodegenCx ;
@@ -157,9 +160,22 @@ pub trait LayoutGccExt<'tcx> {
157160 fn is_gcc_scalar_pair ( & self ) -> bool ;
158161 fn gcc_type < ' gcc > ( & self , cx : & CodegenCx < ' gcc , ' tcx > ) -> Type < ' gcc > ;
159162 fn immediate_gcc_type < ' gcc > ( & self , cx : & CodegenCx < ' gcc , ' tcx > ) -> Type < ' gcc > ;
160- fn scalar_gcc_type_at < ' gcc > ( & self , cx : & CodegenCx < ' gcc , ' tcx > , scalar : & abi:: Scalar , offset : Size ) -> Type < ' gcc > ;
161- fn scalar_pair_element_gcc_type < ' gcc > ( & self , cx : & CodegenCx < ' gcc , ' tcx > , index : usize ) -> Type < ' gcc > ;
162- fn pointee_info_at < ' gcc > ( & self , cx : & CodegenCx < ' gcc , ' tcx > , offset : Size ) -> Option < PointeeInfo > ;
163+ fn scalar_gcc_type_at < ' gcc > (
164+ & self ,
165+ cx : & CodegenCx < ' gcc , ' tcx > ,
166+ scalar : & abi:: Scalar ,
167+ offset : Size ,
168+ ) -> Type < ' gcc > ;
169+ fn scalar_pair_element_gcc_type < ' gcc > (
170+ & self ,
171+ cx : & CodegenCx < ' gcc , ' tcx > ,
172+ index : usize ,
173+ ) -> Type < ' gcc > ;
174+ fn pointee_info_at < ' gcc > (
175+ & self ,
176+ cx : & CodegenCx < ' gcc , ' tcx > ,
177+ offset : Size ,
178+ ) -> Option < PointeeInfo > ;
163179}
164180
165181impl < ' tcx > LayoutGccExt < ' tcx > for TyAndLayout < ' tcx > {
@@ -341,7 +357,12 @@ impl<'gcc, 'tcx> LayoutTypeMethods<'tcx> for CodegenCx<'gcc, 'tcx> {
341357 layout. is_gcc_scalar_pair ( )
342358 }
343359
344- fn scalar_pair_element_backend_type ( & self , layout : TyAndLayout < ' tcx > , index : usize , _immediate : bool ) -> Type < ' gcc > {
360+ fn scalar_pair_element_backend_type (
361+ & self ,
362+ layout : TyAndLayout < ' tcx > ,
363+ index : usize ,
364+ _immediate : bool ,
365+ ) -> Type < ' gcc > {
345366 layout. scalar_pair_element_gcc_type ( self , index)
346367 }
347368
0 commit comments