Skip to content

Commit b0ee1f7

Browse files
committed
Remove scalar_lltypes from cg_ssa
1 parent 7de0b1d commit b0ee1f7

File tree

2 files changed

+0
-9
lines changed

2 files changed

+0
-9
lines changed

src/librustc_codegen_llvm/type_.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,13 @@ use rustc_codegen_ssa::traits::*;
1111
use crate::common;
1212
use crate::type_of::LayoutLlvmExt;
1313
use crate::abi::{LlvmType, FnTypeExt};
14-
use rustc::util::nodemap::FxHashMap;
1514
use rustc::ty::Ty;
1615
use rustc::ty::layout::TyLayout;
1716
use rustc_target::abi::call::{CastTarget, FnType, Reg};
1817
use rustc_data_structures::small_c_str::SmallCStr;
1918
use rustc_codegen_ssa::common::TypeKind;
2019

2120
use std::fmt;
22-
use std::cell::RefCell;
2321
use std::ptr;
2422

2523
use 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

241235
impl Type {

src/librustc_codegen_ssa/traits/type_.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,7 @@ use crate::common::{self, TypeKind};
55
use crate::mir::place::PlaceRef;
66
use rustc::ty::layout::{self, Align, Size, TyLayout};
77
use rustc::ty::{self, Ty};
8-
use rustc::util::nodemap::FxHashMap;
98
use rustc_target::abi::call::{ArgType, CastTarget, FnType, Reg};
10-
use std::cell::RefCell;
119
use 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

5552
pub trait DerivedTypeMethods<'tcx>: BaseTypeMethods<'tcx> + MiscMethods<'tcx> {

0 commit comments

Comments
 (0)