Auto merge of #118828 - mu001999:master, r=b-naber
Remove dead codes in rustc_codegen_gcc Detected by #118257
This commit is contained in:
commit
e95a69d306
@ -377,9 +377,6 @@ pub trait TypeReflection<'gcc, 'tcx> {
|
|||||||
fn is_i128(&self, cx: &CodegenCx<'gcc, 'tcx>) -> bool;
|
fn is_i128(&self, cx: &CodegenCx<'gcc, 'tcx>) -> bool;
|
||||||
fn is_u128(&self, cx: &CodegenCx<'gcc, 'tcx>) -> bool;
|
fn is_u128(&self, cx: &CodegenCx<'gcc, 'tcx>) -> bool;
|
||||||
|
|
||||||
fn is_f32(&self, cx: &CodegenCx<'gcc, 'tcx>) -> bool;
|
|
||||||
fn is_f64(&self, cx: &CodegenCx<'gcc, 'tcx>) -> bool;
|
|
||||||
|
|
||||||
fn is_vector(&self) -> bool;
|
fn is_vector(&self) -> bool;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -464,14 +461,6 @@ impl<'gcc, 'tcx> TypeReflection<'gcc, 'tcx> for Type<'gcc> {
|
|||||||
self.unqualified() == cx.u128_type.unqualified()
|
self.unqualified() == cx.u128_type.unqualified()
|
||||||
}
|
}
|
||||||
|
|
||||||
fn is_f32(&self, cx: &CodegenCx<'gcc, 'tcx>) -> bool {
|
|
||||||
self.unqualified() == cx.context.new_type::<f32>()
|
|
||||||
}
|
|
||||||
|
|
||||||
fn is_f64(&self, cx: &CodegenCx<'gcc, 'tcx>) -> bool {
|
|
||||||
self.unqualified() == cx.context.new_type::<f64>()
|
|
||||||
}
|
|
||||||
|
|
||||||
fn is_vector(&self) -> bool {
|
fn is_vector(&self) -> bool {
|
||||||
let mut typ = self.clone();
|
let mut typ = self.clone();
|
||||||
loop {
|
loop {
|
||||||
|
@ -22,12 +22,6 @@ use rustc_target::spec::{HasTargetSpec, Target, TlsModel};
|
|||||||
use crate::callee::get_fn;
|
use crate::callee::get_fn;
|
||||||
use crate::common::SignType;
|
use crate::common::SignType;
|
||||||
|
|
||||||
#[derive(Clone)]
|
|
||||||
pub struct FuncSig<'gcc> {
|
|
||||||
pub params: Vec<Type<'gcc>>,
|
|
||||||
pub return_type: Type<'gcc>,
|
|
||||||
}
|
|
||||||
|
|
||||||
pub struct CodegenCx<'gcc, 'tcx> {
|
pub struct CodegenCx<'gcc, 'tcx> {
|
||||||
pub check_overflow: bool,
|
pub check_overflow: bool,
|
||||||
pub codegen_unit: &'tcx CodegenUnit<'tcx>,
|
pub codegen_unit: &'tcx CodegenUnit<'tcx>,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user