diff options
Diffstat (limited to 'src/ir_print.cpp')
| -rw-r--r-- | src/ir_print.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/ir_print.cpp b/src/ir_print.cpp index d38b552749..dd671231c0 100644 --- a/src/ir_print.cpp +++ b/src/ir_print.cpp @@ -1453,6 +1453,14 @@ static void ir_print_decl_var_gen(IrPrint *irp, IrInstructionDeclVarGen *decl_va } } +static void ir_print_has_decl(IrPrint *irp, IrInstructionHasDecl *instruction) { + fprintf(irp->f, "@hasDecl("); + ir_print_other_instruction(irp, instruction->container); + fprintf(irp->f, ","); + ir_print_other_instruction(irp, instruction->name); + fprintf(irp->f, ")"); +} + static void ir_print_instruction(IrPrint *irp, IrInstruction *instruction) { ir_print_prefix(irp, instruction); switch (instruction->id) { @@ -1920,6 +1928,9 @@ static void ir_print_instruction(IrPrint *irp, IrInstruction *instruction) { case IrInstructionIdResizeSlice: ir_print_resize_slice(irp, (IrInstructionResizeSlice *)instruction); break; + case IrInstructionIdHasDecl: + ir_print_has_decl(irp, (IrInstructionHasDecl *)instruction); + break; } fprintf(irp->f, "\n"); } |
