get rid of Wrapped

This commit is contained in:
Folkert 2021-06-21 23:10:56 +02:00
parent 205b168f16
commit f3b23a6a54
6 changed files with 44 additions and 135 deletions

View file

@ -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)
}