diff --git a/cranelift/codegen/src/machinst/abi.rs b/cranelift/codegen/src/machinst/abi.rs index 26c1e9a59a..dd4b95d2bd 100644 --- a/cranelift/codegen/src/machinst/abi.rs +++ b/cranelift/codegen/src/machinst/abi.rs @@ -191,9 +191,6 @@ pub trait ABICaller { /// Get the number of arguments expected. fn num_args(&self) -> usize; - /// Access the (possibly legalized) signature. - fn signature(&self) -> &Signature; - /// Emit a copy of an argument value from a source register, prior to the call. /// For large arguments with associated stack buffer, this may load the address /// of the buffer into the argument register, if required by the ABI. diff --git a/cranelift/codegen/src/machinst/abi_impl.rs b/cranelift/codegen/src/machinst/abi_impl.rs index 87355e8ba6..6b8dabbab8 100644 --- a/cranelift/codegen/src/machinst/abi_impl.rs +++ b/cranelift/codegen/src/machinst/abi_impl.rs @@ -1601,8 +1601,6 @@ impl ABICallee for ABICalleeImpl { /// ABI object for a callsite. pub struct ABICallerImpl { - /// CLIF-level signature, possibly normalized. - ir_sig: ir::Signature, /// The called function's signature. sig: ABISig, /// All uses for the callsite, i.e., function args. @@ -1645,7 +1643,6 @@ impl ABICallerImpl { let sig = ABISig::from_func_sig::(&ir_sig, flags)?; let (uses, defs, clobbers) = sig.call_uses_defs_clobbers::(); Ok(ABICallerImpl { - ir_sig, sig, uses, defs, @@ -1671,7 +1668,6 @@ impl ABICallerImpl { let sig = ABISig::from_func_sig::(&ir_sig, flags)?; let (uses, defs, clobbers) = sig.call_uses_defs_clobbers::(); Ok(ABICallerImpl { - ir_sig, sig, uses, defs, @@ -1703,10 +1699,6 @@ fn adjust_stack_and_nominal_sp>( impl ABICaller for ABICallerImpl { type I = M::I; - fn signature(&self) -> &ir::Signature { - &self.ir_sig - } - fn num_args(&self) -> usize { if self.sig.stack_ret_arg.is_some() { self.sig.args.len() - 1