add returning str and list

This commit is contained in:
Brendan Hansknecht 2022-02-17 21:17:56 -08:00
parent cb64543476
commit d65a971508
3 changed files with 44 additions and 79 deletions

View file

@ -1,7 +1,4 @@
use crate::{
single_register_floats, single_register_integers, single_register_layouts, Backend, Env,
Relocation,
};
use crate::{single_register_floats, single_register_integers, Backend, Env, Relocation};
use bumpalo::collections::Vec;
use roc_builtins::bitcode::{FloatWidth, IntWidth};
use roc_collections::all::{MutMap, MutSet};
@ -602,9 +599,6 @@ impl<
let dst_reg = self.storage_manager.claim_float_reg(&mut self.buf, dst);
ASM::mov_freg64_freg64(&mut self.buf, dst_reg, CC::FLOAT_RETURN_REGS[0]);
}
Layout::Struct([]) => {
// Nothing needs to be done to load a returned empty struct.
}
_ => {
CC::load_returned_complex_symbol(
&mut self.buf,