Skip to content

Commit 5ef9ed2

Browse files
Rollup merge of rust-lang#118828 - mu001999:master, r=b-naber
Remove dead codes in rustc_codegen_gcc Detected by rust-lang#118257
2 parents c127648 + 2bc60fd commit 5ef9ed2

File tree

2 files changed

+0
-17
lines changed

2 files changed

+0
-17
lines changed

compiler/rustc_codegen_gcc/src/common.rs

-11
Original file line numberDiff line numberDiff line change
@@ -377,9 +377,6 @@ pub trait TypeReflection<'gcc, 'tcx> {
377377
fn is_i128(&self, cx: &CodegenCx<'gcc, 'tcx>) -> bool;
378378
fn is_u128(&self, cx: &CodegenCx<'gcc, 'tcx>) -> bool;
379379

380-
fn is_f32(&self, cx: &CodegenCx<'gcc, 'tcx>) -> bool;
381-
fn is_f64(&self, cx: &CodegenCx<'gcc, 'tcx>) -> bool;
382-
383380
fn is_vector(&self) -> bool;
384381
}
385382

@@ -464,14 +461,6 @@ impl<'gcc, 'tcx> TypeReflection<'gcc, 'tcx> for Type<'gcc> {
464461
self.unqualified() == cx.u128_type.unqualified()
465462
}
466463

467-
fn is_f32(&self, cx: &CodegenCx<'gcc, 'tcx>) -> bool {
468-
self.unqualified() == cx.context.new_type::<f32>()
469-
}
470-
471-
fn is_f64(&self, cx: &CodegenCx<'gcc, 'tcx>) -> bool {
472-
self.unqualified() == cx.context.new_type::<f64>()
473-
}
474-
475464
fn is_vector(&self) -> bool {
476465
let mut typ = self.clone();
477466
loop {

compiler/rustc_codegen_gcc/src/context.rs

-6
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,6 @@ use rustc_target::spec::{HasTargetSpec, Target, TlsModel};
2222
use crate::callee::get_fn;
2323
use crate::common::SignType;
2424

25-
#[derive(Clone)]
26-
pub struct FuncSig<'gcc> {
27-
pub params: Vec<Type<'gcc>>,
28-
pub return_type: Type<'gcc>,
29-
}
30-
3125
pub struct CodegenCx<'gcc, 'tcx> {
3226
pub check_overflow: bool,
3327
pub codegen_unit: &'tcx CodegenUnit<'tcx>,

0 commit comments

Comments
 (0)