From 41144a8566a6fbd779403f6b69424bb640c94a7f Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Thu, 13 Apr 2017 00:13:54 -0400 Subject: ability to inline at function callsite closes #306 --- src/ir_print.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/ir_print.cpp') diff --git a/src/ir_print.cpp b/src/ir_print.cpp index dbad27afb7..e16e795c4d 100644 --- a/src/ir_print.cpp +++ b/src/ir_print.cpp @@ -870,6 +870,10 @@ static void ir_print_panic(IrPrint *irp, IrInstructionPanic *instruction) { fprintf(irp->f, ")"); } +static void ir_print_set_fn_ref_inline(IrPrint *irp, IrInstructionSetFnRefInline *instruction) { + fprintf(irp->f, "inline "); + ir_print_other_instruction(irp, instruction->fn_ref); +} static void ir_print_instruction(IrPrint *irp, IrInstruction *instruction) { ir_print_prefix(irp, instruction); @@ -1155,6 +1159,9 @@ static void ir_print_instruction(IrPrint *irp, IrInstruction *instruction) { case IrInstructionIdPanic: ir_print_panic(irp, (IrInstructionPanic *)instruction); break; + case IrInstructionIdSetFnRefInline: + ir_print_set_fn_ref_inline(irp, (IrInstructionSetFnRefInline *)instruction); + break; } fprintf(irp->f, "\n"); } -- cgit v1.2.3