mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 22:34:45 +00:00
phase 3
This commit is contained in:
parent
74932a4cab
commit
0ed259a80d
5 changed files with 34 additions and 23 deletions
|
@ -1237,6 +1237,13 @@ impl<'a> Layout<'a> {
|
|||
}
|
||||
}
|
||||
|
||||
pub fn isize(target_info: TargetInfo) -> Layout<'a> {
|
||||
match target_info.ptr_width() {
|
||||
roc_target::PtrWidth::Bytes4 => Self::i32(),
|
||||
roc_target::PtrWidth::Bytes8 => Self::i64(),
|
||||
}
|
||||
}
|
||||
|
||||
pub fn bool() -> Layout<'a> {
|
||||
Layout::Builtin(Builtin::Bool)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue