Skip to content

Commit

Permalink
Remove scalar_lltypes from cg_ssa
Browse files Browse the repository at this point in the history
  • Loading branch information
bjorn3 committed Mar 29, 2019
1 parent 7de0b1d commit b0ee1f7
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 9 deletions.
6 changes: 0 additions & 6 deletions src/librustc_codegen_llvm/type_.rs
Expand Up @@ -11,15 +11,13 @@ 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};
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;
Expand Down Expand Up @@ -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 {
Expand Down
3 changes: 0 additions & 3 deletions src/librustc_codegen_ssa/traits/type_.rs
Expand Up @@ -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
Expand Down Expand Up @@ -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> {
Expand Down

0 comments on commit b0ee1f7

Please sign in to comment.