mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-29 14:54:47 +00:00
add returning str and list
This commit is contained in:
parent
cb64543476
commit
d65a971508
3 changed files with 44 additions and 79 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue