From 600d5b91ea199488c40787459f3745f1ddca7b78 Mon Sep 17 00:00:00 2001 From: Danila Fedorin Date: Thu, 18 Jun 2020 23:06:13 -0700 Subject: [PATCH] Remove unneeded parent class. --- code/compiler/12/global_scope.hpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/code/compiler/12/global_scope.hpp b/code/compiler/12/global_scope.hpp index 564258c..9f75ce3 100644 --- a/code/compiler/12/global_scope.hpp +++ b/code/compiler/12/global_scope.hpp @@ -8,11 +8,7 @@ struct ast; using ast_ptr = std::unique_ptr; -struct global_definition { - virtual void generate_llvm(llvm_context& ctx) = 0; -}; - -struct global_function : global_definition { +struct global_function { std::string name; std::vector params; ast_ptr body; @@ -30,7 +26,7 @@ struct global_function : global_definition { using global_function_ptr = std::unique_ptr; -struct global_constructor : global_definition { +struct global_constructor { std::string name; int8_t tag; size_t arity;