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::*;
11
11
use crate :: common;
12
12
use crate :: type_of:: LayoutLlvmExt ;
13
13
use crate :: abi:: { LlvmType , FnTypeExt } ;
14
- use rustc:: util:: nodemap:: FxHashMap ;
15
14
use rustc:: ty:: Ty ;
16
15
use rustc:: ty:: layout:: TyLayout ;
17
16
use rustc_target:: abi:: call:: { CastTarget , FnType , Reg } ;
18
17
use rustc_data_structures:: small_c_str:: SmallCStr ;
19
18
use rustc_codegen_ssa:: common:: TypeKind ;
20
19
21
20
use std:: fmt;
22
- use std:: cell:: RefCell ;
23
21
use std:: ptr;
24
22
25
23
use libc:: c_uint;
@@ -232,10 +230,6 @@ impl BaseTypeMethods<'tcx> for CodegenCx<'ll, 'tcx> {
232
230
fn val_ty ( & self , v : & ' ll Value ) -> & ' ll Type {
233
231
common:: val_ty ( v)
234
232
}
235
-
236
- fn scalar_lltypes ( & self ) -> & RefCell < FxHashMap < Ty < ' tcx > , Self :: Type > > {
237
- & self . scalar_lltypes
238
- }
239
233
}
240
234
241
235
impl Type {
Original file line number Diff line number Diff line change @@ -5,9 +5,7 @@ use crate::common::{self, TypeKind};
5
5
use crate :: mir:: place:: PlaceRef ;
6
6
use rustc:: ty:: layout:: { self , Align , Size , TyLayout } ;
7
7
use rustc:: ty:: { self , Ty } ;
8
- use rustc:: util:: nodemap:: FxHashMap ;
9
8
use rustc_target:: abi:: call:: { ArgType , CastTarget , FnType , Reg } ;
10
- use std:: cell:: RefCell ;
11
9
use syntax:: ast;
12
10
13
11
// This depends on `Backend` and not `BackendTypes`, because consumers will probably want to use
@@ -49,7 +47,6 @@ pub trait BaseTypeMethods<'tcx>: Backend<'tcx> {
49
47
fn int_width ( & self , ty : Self :: Type ) -> u64 ;
50
48
51
49
fn val_ty ( & self , v : Self :: Value ) -> Self :: Type ;
52
- fn scalar_lltypes ( & self ) -> & RefCell < FxHashMap < Ty < ' tcx > , Self :: Type > > ;
53
50
}
54
51
55
52
pub trait DerivedTypeMethods < ' tcx > : BaseTypeMethods < ' tcx > + MiscMethods < ' tcx > {
You can’t perform that action at this time.
0 commit comments