Changed generic modules to internal templates.

This commit is contained in:
Christoffer Lerno
2021-05-26 22:50:27 +02:00
committed by Christoffer Lerno
parent b99f8d644b
commit 892c7e8874
41 changed files with 601 additions and 502 deletions

View File

@@ -634,10 +634,18 @@ void llvm_emit_extern_decl(GenContext *context, Decl *decl)
case DECL_STRUCT:
case DECL_UNION:
case DECL_ERR:
VECEACH(decl->methods, i)
{
llvm_emit_function_decl(context, decl->methods[i]);
}
llvm_get_type(context, decl->type);
// TODO // Fix typeid
break;
case DECL_ENUM:
VECEACH(decl->methods, i)
{
llvm_emit_function_decl(context, decl->methods[i]);
}
TODO
case NON_TYPE_DECLS:
case DECL_INTERFACE: