mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 05:49:08 +00:00
wasm: delete ReturnMethod::ZigPackedStruct
This commit is contained in:
parent
564de99a43
commit
cc2b8b5d19
4 changed files with 22 additions and 71 deletions
|
@ -13,8 +13,6 @@ pub enum ReturnMethod {
|
|||
WriteToPointerArg,
|
||||
/// This layout is empty and requires no return value or argument (e.g. refcount helpers)
|
||||
NoReturnValue,
|
||||
/// This layout is returned as a packed struct in an integer. Only used by Zig, not C.
|
||||
ZigPackedStruct,
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
|
||||
|
@ -197,13 +195,7 @@ impl CallConv {
|
|||
match self {
|
||||
CallConv::C => WriteToPointerArg,
|
||||
|
||||
CallConv::Zig => {
|
||||
if size <= 8 {
|
||||
ZigPackedStruct
|
||||
} else {
|
||||
WriteToPointerArg
|
||||
}
|
||||
}
|
||||
CallConv::Zig => WriteToPointerArg,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue