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;