Remove unneeded parent class.

This commit is contained in:
Danila Fedorin 2020-06-18 23:06:13 -07:00
parent 09b90c3bbc
commit 600d5b91ea
1 changed files with 2 additions and 6 deletions

View File

@ -8,11 +8,7 @@
struct ast; struct ast;
using ast_ptr = std::unique_ptr<ast>; using ast_ptr = std::unique_ptr<ast>;
struct global_definition { struct global_function {
virtual void generate_llvm(llvm_context& ctx) = 0;
};
struct global_function : global_definition {
std::string name; std::string name;
std::vector<std::string> params; std::vector<std::string> params;
ast_ptr body; ast_ptr body;
@ -30,7 +26,7 @@ struct global_function : global_definition {
using global_function_ptr = std::unique_ptr<global_function>; using global_function_ptr = std::unique_ptr<global_function>;
struct global_constructor : global_definition { struct global_constructor {
std::string name; std::string name;
int8_t tag; int8_t tag;
size_t arity; size_t arity;