From 4d5b239be84e1439b2c549591d1a4fcbd710f372 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20S=C3=BCberkr=C3=BCb?= Date: Sat, 4 Jan 2025 23:11:35 +0100 Subject: [PATCH] Remove IR lookup tables for now --- lang/backend/src/ir/mod.rs | 2 -- lang/backend/src/ir/symbol_table.rs | 36 ----------------------------- 2 files changed, 38 deletions(-) delete mode 100644 lang/backend/src/ir/symbol_table.rs diff --git a/lang/backend/src/ir/mod.rs b/lang/backend/src/ir/mod.rs index 3a414a0a57..1fa92fc346 100644 --- a/lang/backend/src/ir/mod.rs +++ b/lang/backend/src/ir/mod.rs @@ -3,8 +3,6 @@ pub mod decls; pub mod exprs; -pub mod symbol_table; pub use decls::*; pub use exprs::*; -pub use symbol_table::*; diff --git a/lang/backend/src/ir/symbol_table.rs b/lang/backend/src/ir/symbol_table.rs deleted file mode 100644 index a4d043bb66..0000000000 --- a/lang/backend/src/ir/symbol_table.rs +++ /dev/null @@ -1,36 +0,0 @@ -use ast::HashMap; - -pub struct GlobalSymbolTable { - pub modules: HashMap, -} - -#[derive(Default)] -pub struct ModuleSymbolTable { - pub data_decls: HashMap, - pub codata_decls: HashMap, -} - -#[derive(Debug, Clone)] -pub struct Data { - pub name: String, - pub ctors: Vec, -} - -#[derive(Debug, Clone)] -pub struct Codata { - pub name: String, - pub dtors: Vec, -} - -#[derive(Debug, Clone)] -pub struct Ctor { - pub name: String, - pub params: Vec, -} - -#[derive(Debug, Clone)] -pub struct Dtor { - pub name: String, - pub self_param: String, - pub params: Vec, -}