diff options
| author | bjorn3 <bjorn3@users.noreply.github.com> | 2018-12-07 18:04:34 +0100 |
|---|---|---|
| committer | bjorn3 <bjorn3@users.noreply.github.com> | 2019-03-29 17:17:13 +0100 |
| commit | b0ee1f7f99c1190d51ecdb592e23b868f488a346 (patch) | |
| tree | cbf12d5be825754c5ccd6fa95a9401bafd3da0ba | |
| parent | 7de0b1de19beac340691d260e7d5ed3dfeb92081 (diff) | |
| download | rust-b0ee1f7f99c1190d51ecdb592e23b868f488a346.tar.gz rust-b0ee1f7f99c1190d51ecdb592e23b868f488a346.zip | |
Remove scalar_lltypes from cg_ssa
| -rw-r--r-- | src/librustc_codegen_llvm/type_.rs | 6 | ||||
| -rw-r--r-- | src/librustc_codegen_ssa/traits/type_.rs | 3 |
2 files changed, 0 insertions, 9 deletions
diff --git a/src/librustc_codegen_llvm/type_.rs b/src/librustc_codegen_llvm/type_.rs index d5424fa4591..426c70fb2dc 100644 --- a/src/librustc_codegen_llvm/type_.rs +++ b/src/librustc_codegen_llvm/type_.rs @@ -11,7 +11,6 @@ use rustc_codegen_ssa::traits::*; use crate::common; use crate::type_of::LayoutLlvmExt; use crate::abi::{LlvmType, FnTypeExt}; -use rustc::util::nodemap::FxHashMap; use rustc::ty::Ty; use rustc::ty::layout::TyLayout; use rustc_target::abi::call::{CastTarget, FnType, Reg}; @@ -19,7 +18,6 @@ use rustc_data_structures::small_c_str::SmallCStr; use rustc_codegen_ssa::common::TypeKind; use std::fmt; -use std::cell::RefCell; use std::ptr; use libc::c_uint; @@ -232,10 +230,6 @@ impl BaseTypeMethods<'tcx> for CodegenCx<'ll, 'tcx> { fn val_ty(&self, v: &'ll Value) -> &'ll Type { common::val_ty(v) } - - fn scalar_lltypes(&self) -> &RefCell<FxHashMap<Ty<'tcx>, Self::Type>> { - &self.scalar_lltypes - } } impl Type { diff --git a/src/librustc_codegen_ssa/traits/type_.rs b/src/librustc_codegen_ssa/traits/type_.rs index fe00276a55a..442b25ce0b6 100644 --- a/src/librustc_codegen_ssa/traits/type_.rs +++ b/src/librustc_codegen_ssa/traits/type_.rs @@ -5,9 +5,7 @@ use crate::common::{self, TypeKind}; use crate::mir::place::PlaceRef; use rustc::ty::layout::{self, Align, Size, TyLayout}; use rustc::ty::{self, Ty}; -use rustc::util::nodemap::FxHashMap; use rustc_target::abi::call::{ArgType, CastTarget, FnType, Reg}; -use std::cell::RefCell; use syntax::ast; // This depends on `Backend` and not `BackendTypes`, because consumers will probably want to use @@ -49,7 +47,6 @@ pub trait BaseTypeMethods<'tcx>: Backend<'tcx> { fn int_width(&self, ty: Self::Type) -> u64; fn val_ty(&self, v: Self::Value) -> Self::Type; - fn scalar_lltypes(&self) -> &RefCell<FxHashMap<Ty<'tcx>, Self::Type>>; } pub trait DerivedTypeMethods<'tcx>: BaseTypeMethods<'tcx> + MiscMethods<'tcx> { |
