Remove unneeded parent class.

This commit is contained in:
Danila Fedorin 2020-06-18 23:06:13 -07:00
parent 09b90c3bbc
commit 600d5b91ea

View File

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