Initial work on throws. Cleanup of AST printout (incomplete!). Fixed issues with dead code after return.

This commit is contained in:
Christoffer Lerno
2019-11-28 22:24:10 +01:00
parent aee3f99ea7
commit acf7efded4
18 changed files with 146 additions and 68 deletions

View File

@@ -9,6 +9,7 @@ static inline LLVMMetadataRef gencontext_create_debug_type_from_decl(GenContext
static LLVMMetadataRef debug_params[512];
switch (decl->decl_kind)
{
case DECL_THROWS:
case DECL_ATTRIBUTE:
case DECL_ENUM_CONSTANT:
case DECL_POISONED:
@@ -165,6 +166,8 @@ LLVMMetadataRef gencontext_get_debug_type(GenContext *context, Type *type)
break;
case TYPE_SUBARRAY:
break;
case TYPE_ERROR_UNION:
TODO
}
TODO
}