diff options
| author | bors <bors@rust-lang.org> | 2023-12-17 12:15:56 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2023-12-17 12:15:56 +0000 |
| commit | 335e3ec566012f644a7c865f49f4731bac8c8f44 (patch) | |
| tree | 5922664d42e32081807061e2b3c6a3f56b0017f7 /src | |
| parent | b1affb9321442f378ee06fbaf0ebdc3317e5c9fe (diff) | |
| parent | 92de9d4210a7e81fd8db558c54367026a68bec62 (diff) | |
Auto merge of #118828 - mu001999:master, r=b-naber
Remove dead codes in rustc_codegen_gcc Detected by #118257
Diffstat (limited to 'src')
| -rw-r--r-- | src/common.rs | 11 | ||||
| -rw-r--r-- | src/context.rs | 6 |
2 files changed, 0 insertions, 17 deletions
diff --git a/src/common.rs b/src/common.rs index b7ddc410315..c6edd52d1e4 100644 --- a/src/common.rs +++ b/src/common.rs @@ -377,9 +377,6 @@ pub trait TypeReflection<'gcc, 'tcx> { fn is_i128(&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; } @@ -464,14 +461,6 @@ impl<'gcc, 'tcx> TypeReflection<'gcc, 'tcx> for Type<'gcc> { 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 { let mut typ = self.clone(); loop { diff --git a/src/context.rs b/src/context.rs index 893cad05161..ab9c703db37 100644 --- a/src/context.rs +++ b/src/context.rs @@ -22,12 +22,6 @@ use rustc_target::spec::{HasTargetSpec, Target, TlsModel}; use crate::callee::get_fn; 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 check_overflow: bool, pub codegen_unit: &'tcx CodegenUnit<'tcx>, |
