mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-03 00:24:34 +00:00
get rid of Wrapped
This commit is contained in:
parent
205b168f16
commit
f3b23a6a54
6 changed files with 44 additions and 135 deletions
|
@ -386,17 +386,6 @@ impl<'a> LambdaSet<'a> {
|
|||
}
|
||||
}
|
||||
|
||||
pub fn get_wrapped(&self) -> crate::ir::Wrapped {
|
||||
use crate::ir::Wrapped;
|
||||
|
||||
match self.representation {
|
||||
Layout::Struct(fields) if fields.len() == 1 => unreachable!(),
|
||||
Layout::Struct(_) => Wrapped::RecordOrSingleTagUnion,
|
||||
Layout::Union(_) => unreachable!(),
|
||||
_ => unreachable!(),
|
||||
}
|
||||
}
|
||||
|
||||
pub fn stack_size(&self, pointer_size: u32) -> u32 {
|
||||
self.representation.stack_size(pointer_size)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue