mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-01 07:41:12 +00:00
stub out Tag layout
This commit is contained in:
parent
6088a22cb6
commit
5926ac2f01
3 changed files with 23 additions and 16 deletions
|
@ -10,7 +10,7 @@ pub fn type_from_layout(cfg: TargetFrontendConfig, layout: &Layout<'_>) -> Type
|
|||
use roc_mono::layout::Layout::*;
|
||||
|
||||
match layout {
|
||||
Pointer(_) | FunctionPointer(_, _) | Struct(_) => cfg.pointer_type(),
|
||||
Pointer(_) | FunctionPointer(_, _) | Struct(_) | Tag(_) => cfg.pointer_type(),
|
||||
Builtin(builtin) => match builtin {
|
||||
Int64 => types::I64,
|
||||
Float64 => types::F64,
|
||||
|
|
|
@ -56,6 +56,9 @@ pub fn basic_type_from_layout<'ctx>(
|
|||
Struct(_fields) => {
|
||||
panic!("TODO layout_to_basic_type for Struct");
|
||||
}
|
||||
Tag(_fields) => {
|
||||
panic!("TODO layout_to_basic_type for Tag");
|
||||
}
|
||||
Pointer(_layout) => {
|
||||
panic!("TODO layout_to_basic_type for Pointer");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue