diff options
| author | r0cky <mu001999@outlook.com> | 2023-12-11 23:12:49 +0800 |
|---|---|---|
| committer | r0cky <mu001999@outlook.com> | 2023-12-11 23:24:32 +0800 |
| commit | 92de9d4210a7e81fd8db558c54367026a68bec62 (patch) | |
| tree | 7de08bdb0f057f20d82b6a31e1cc02b6d19c4310 | |
| parent | c578f4302ccbe2a91ebb15f5edfd0686c9148f94 (diff) | |
| download | rust-92de9d4210a7e81fd8db558c54367026a68bec62.tar.gz rust-92de9d4210a7e81fd8db558c54367026a68bec62.zip | |
Remove dead codes
| -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>, |
