aboutsummaryrefslogtreecommitdiff
path: root/patio-to-cranelift/src/patio/types.rs
diff options
context:
space:
mode:
Diffstat (limited to 'patio-to-cranelift/src/patio/types.rs')
-rw-r--r--patio-to-cranelift/src/patio/types.rs39
1 files changed, 0 insertions, 39 deletions
diff --git a/patio-to-cranelift/src/patio/types.rs b/patio-to-cranelift/src/patio/types.rs
deleted file mode 100644
index 49bce09a..00000000
--- a/patio-to-cranelift/src/patio/types.rs
+++ /dev/null
@@ -1,39 +0,0 @@
-#[derive(Clone, Copy, Eq, PartialEq)]
-pub(crate) enum PatioType {
- Bool,
- Byte,
- DataPtr,
- FunctionPtr,
- Int,
- Int32,
-}
-
-#[derive(Clone, Debug, PartialEq)]
-pub(crate) enum PatioDataLayout {
- Array {
- element: Box<PatioDataLayout>,
- size: u32,
- },
- Bool,
- Byte,
- DataPtr,
- FunctionPtr,
- Int,
- Int32,
- Struct {
- elements: Vec<PatioDataLayout>,
- },
-}
-
-impl PatioDataLayout {
- pub(crate) fn array(element: PatioDataLayout, size: u32) -> Self {
- Self::Array {
- element: Box::new(element),
- size,
- }
- }
-
- pub(crate) fn struct_(elements: Vec<PatioDataLayout>) -> Self {
- Self::Struct { elements }
- }
-}