From 4902bd6d9f72d46042fea5d4892d07e85a03c4c0 Mon Sep 17 00:00:00 2001 From: Minseong Jang Date: Tue, 25 Jan 2022 17:22:58 +0900 Subject: [PATCH] Update asm --- src/asm/mod.rs | 40 ++++++++++++++++++++-------------------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/src/asm/mod.rs b/src/asm/mod.rs index 9fff147..5fe3f0e 100644 --- a/src/asm/mod.rs +++ b/src/asm/mod.rs @@ -4,22 +4,22 @@ use crate::ir; use core::convert::TryFrom; -#[derive(Debug, Clone, PartialEq)] +#[derive(Debug, Clone, PartialEq, Eq)] pub struct Todo {} /// TODO -#[derive(Debug, Clone, PartialEq)] +#[derive(Debug, Clone, PartialEq, Eq)] pub struct Asm { pub unit: TranslationUnit, } -#[derive(Debug, Clone, PartialEq)] +#[derive(Debug, Clone, PartialEq, Eq)] pub struct TranslationUnit { pub functions: Vec>, pub variables: Vec>, } -#[derive(Debug, Clone, PartialEq)] +#[derive(Debug, Clone, PartialEq, Eq)] pub struct Section { /// Section Headers provice size, offset, type, alignment and flags of the sections /// https://github.com/rv8-io/rv8-io.github.io/blob/master/asm.md#section-header @@ -36,7 +36,7 @@ impl Section { } } -#[derive(Debug, Clone, PartialEq)] +#[derive(Debug, Clone, PartialEq, Eq)] pub struct Function { pub blocks: Vec, } @@ -47,7 +47,7 @@ impl Function { } } -#[derive(Debug, Clone, PartialEq)] +#[derive(Debug, Clone, PartialEq, Eq)] pub struct Variable { pub label: Label, pub directives: Vec, @@ -59,7 +59,7 @@ impl Variable { } } -#[derive(Debug, Clone, PartialEq)] +#[derive(Debug, Clone, PartialEq, Eq)] pub struct Block { pub label: Option