Make the stackslot offsets available for debuginfo

This commit is contained in:
bjorn3
2021-02-03 15:59:00 +01:00
parent 256cc8a518
commit 76d615049d
7 changed files with 31 additions and 14 deletions

View File

@@ -57,6 +57,9 @@ pub trait ABICallee {
/// Number of stack slots (not spill slots).
fn num_stackslots(&self) -> usize;
/// The offsets of all stack slots (not spill slots) for debuginfo purposes.
fn stackslot_offsets(&self) -> &PrimaryMap<StackSlot, u32>;
/// Generate an instruction which copies an argument to a destination
/// register.
fn gen_copy_arg_to_regs(