diff options
| author | Andrew Kelley <superjoe30@gmail.com> | 2016-10-27 01:08:06 -0400 |
|---|---|---|
| committer | Andrew Kelley <superjoe30@gmail.com> | 2016-10-27 01:08:06 -0400 |
| commit | bfcd6648e70bfe647b6fea9d6d9a024c4a9169d4 (patch) | |
| tree | 2b1c65292a34e10f9324cd0274806a3b76a06a7f /src/ir_print.cpp | |
| parent | 44d6f8ffd8eac02747fa0f915b925bb2112570dd (diff) | |
| download | zig-bfcd6648e70bfe647b6fea9d6d9a024c4a9169d4.tar.gz zig-bfcd6648e70bfe647b6fea9d6d9a024c4a9169d4.zip | |
IR can inline loops
Diffstat (limited to 'src/ir_print.cpp')
| -rw-r--r-- | src/ir_print.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/ir_print.cpp b/src/ir_print.cpp index ffc06d841d..d1c8bf52e4 100644 --- a/src/ir_print.cpp +++ b/src/ir_print.cpp @@ -62,6 +62,12 @@ static void ir_print_const_value(IrPrint *irp, TypeTableEntry *type_entry, Const fprintf(irp->f, "&"); ir_print_const_value(irp, type_entry->data.pointer.child_type, const_val->data.x_ptr.ptr[0]); break; + case TypeTableEntryIdFn: + { + FnTableEntry *fn_entry = const_val->data.x_fn; + fprintf(irp->f, "%s", buf_ptr(&fn_entry->symbol_name)); + break; + } case TypeTableEntryIdVar: case TypeTableEntryIdFloat: case TypeTableEntryIdArray: @@ -73,7 +79,6 @@ static void ir_print_const_value(IrPrint *irp, TypeTableEntry *type_entry, Const case TypeTableEntryIdPureError: case TypeTableEntryIdEnum: case TypeTableEntryIdUnion: - case TypeTableEntryIdFn: case TypeTableEntryIdTypeDecl: case TypeTableEntryIdNamespace: case TypeTableEntryIdBlock: |
