Remove unneeded parent class.
This commit is contained in:
parent
4a94d0e507
commit
645d41159b
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue
Block a user