Compiler internal change: TypeRecord_Enum -> Type_Enum

This commit is contained in:
Ginger Bill
2017-07-10 22:42:58 +01:00
parent fd8c4d58bb
commit d936ca1ea0
6 changed files with 143 additions and 166 deletions

View File

@@ -280,6 +280,11 @@ void ir_print_type(irFileBuffer *f, irModule *m, Type *t) {
ir_print_type(f, m, t_allocator);
ir_fprintf(f, "}");
return;
case Type_Enum:
ir_print_type(f, m, base_enum_type(t));
return;
case Type_Record: {
switch (t->Record.kind) {
case TypeRecord_Struct:
@@ -331,9 +336,6 @@ void ir_print_type(irFileBuffer *f, irModule *m, Type *t) {
i64 align_of_union = type_align_of(heap_allocator(), t);
ir_fprintf(f, "{[0 x <%lld x i8>], [%lld x i8]}", align_of_union, size_of_union);
} return;
case TypeRecord_Enum:
ir_print_type(f, m, base_enum_type(t));
return;
}
} break;