-
- /*pub fn type_int_from_ty(&self, t: ty::IntTy) -> Type<'gcc> {
- match t {
- ty::IntTy::Isize => self.type_isize(),
- ty::IntTy::I8 => self.type_i8(),
- ty::IntTy::I16 => self.type_i16(),
- ty::IntTy::I32 => self.type_i32(),
- ty::IntTy::I64 => self.type_i64(),
- ty::IntTy::I128 => self.type_i128(),
- }
- }
-
- pub fn type_uint_from_ty(&self, t: ty::UintTy) -> Type<'gcc> {
- match t {
- ty::UintTy::Usize => self.type_isize(),
- ty::UintTy::U8 => self.type_i8(),
- ty::UintTy::U16 => self.type_i16(),
- ty::UintTy::U32 => self.type_i32(),
- ty::UintTy::U64 => self.type_i64(),
- ty::UintTy::U128 => self.type_i128(),
- }
- }
-
- pub fn type_float_from_ty(&self, t: ty::FloatTy) -> Type<'gcc> {
- match t {
- ty::FloatTy::F32 => self.type_f32(),
- ty::FloatTy::F64 => self.type_f64(),
- }
- }
-
- pub fn type_vector(&self, ty: Type<'gcc>, len: u64) -> Type<'gcc> {
- self.context.new_vector_type(ty, len)
- }*/