Added parentof.

This commit is contained in:
Christoffer Lerno
2023-08-29 09:02:45 +02:00
committed by Christoffer Lerno
parent 092296984a
commit a23112fae6
45 changed files with 307 additions and 124 deletions

View File

@@ -16,6 +16,7 @@ static inline LLVMTypeRef create_introspection_type(GenContext *c)
LLVMTypeRef type = LLVMStructCreateNamed(c->context, ".introspect");
LLVMTypeRef introspect_type[INTROSPECT_INDEX_TOTAL] = {
[INTROSPECT_INDEX_KIND] = c->byte_type,
[INTROSPECT_INDEX_PARENTOF] = c->typeid_type,
[INTROSPECT_INDEX_DTABLE] = c->ptr_type,
[INTROSPECT_INDEX_SIZEOF] = c->size_type,
[INTROSPECT_INDEX_INNER] = c->typeid_type,