Remove scalar_lltypes from cg_ssa
This commit is contained in:
parent
7de0b1de19
commit
b0ee1f7f99
@ -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 {
|
||||
|
@ -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> {
|
||||
|
Loading…
Reference in New Issue
Block a user