aarch64: pass a lowering context to gen_copy_reg_to_arg;

This commit is contained in:
Benjamin Bouvier
2020-04-24 17:38:23 +02:00
parent 0b13d8c848
commit 19b5b0cc7b
3 changed files with 10 additions and 13 deletions

View File

@@ -133,12 +133,11 @@ pub trait ABICall {
fn num_args(&self) -> usize;
/// Copy an argument value from a source register, prior to the call.
fn gen_copy_reg_to_arg(
fn gen_copy_reg_to_arg<C: LowerCtx<I = Self::I>>(
&self,
ctx: &mut C,
idx: usize,
from_reg: Reg,
tmp1: Writable<Reg>,
tmp2: Writable<Reg>,
) -> Vec<Self::I>;
/// Copy a return value into a destination register, after the call returns.