File tree Expand file tree Collapse file tree 2 files changed +0
-9
lines changed
librustc_codegen_ssa/traits Expand file tree Collapse file tree 2 files changed +0
-9
lines changed Original file line number Diff line number Diff line change @@ -11,15 +11,13 @@ use rustc_codegen_ssa::traits::*;
1111use crate :: common;
1212use crate :: type_of:: LayoutLlvmExt ;
1313use crate :: abi:: { LlvmType , FnTypeExt } ;
14- use rustc:: util:: nodemap:: FxHashMap ;
1514use rustc:: ty:: Ty ;
1615use rustc:: ty:: layout:: TyLayout ;
1716use rustc_target:: abi:: call:: { CastTarget , FnType , Reg } ;
1817use rustc_data_structures:: small_c_str:: SmallCStr ;
1918use rustc_codegen_ssa:: common:: TypeKind ;
2019
2120use std:: fmt;
22- use std:: cell:: RefCell ;
2321use std:: ptr;
2422
2523use libc:: c_uint;
@@ -232,10 +230,6 @@ impl BaseTypeMethods<'tcx> for CodegenCx<'ll, 'tcx> {
232230 fn val_ty ( & self , v : & ' ll Value ) -> & ' ll Type {
233231 common:: val_ty ( v)
234232 }
235-
236- fn scalar_lltypes ( & self ) -> & RefCell < FxHashMap < Ty < ' tcx > , Self :: Type > > {
237- & self . scalar_lltypes
238- }
239233}
240234
241235impl Type {
Original file line number Diff line number Diff line change @@ -5,9 +5,7 @@ use crate::common::{self, TypeKind};
55use crate :: mir:: place:: PlaceRef ;
66use rustc:: ty:: layout:: { self , Align , Size , TyLayout } ;
77use rustc:: ty:: { self , Ty } ;
8- use rustc:: util:: nodemap:: FxHashMap ;
98use rustc_target:: abi:: call:: { ArgType , CastTarget , FnType , Reg } ;
10- use std:: cell:: RefCell ;
119use syntax:: ast;
1210
1311// This depends on `Backend` and not `BackendTypes`, because consumers will probably want to use
@@ -49,7 +47,6 @@ pub trait BaseTypeMethods<'tcx>: Backend<'tcx> {
4947 fn int_width ( & self , ty : Self :: Type ) -> u64 ;
5048
5149 fn val_ty ( & self , v : Self :: Value ) -> Self :: Type ;
52- fn scalar_lltypes ( & self ) -> & RefCell < FxHashMap < Ty < ' tcx > , Self :: Type > > ;
5350}
5451
5552pub trait DerivedTypeMethods < ' tcx > : BaseTypeMethods < ' tcx > + MiscMethods < ' tcx > {
You can’t perform that action at this time.
0 commit comments