aboutsummaryrefslogtreecommitdiff
path: root/src/ir_print.cpp
diff options
context:
space:
mode:
authorAndrew Kelley <superjoe30@gmail.com>2017-04-13 00:13:54 -0400
committerAndrew Kelley <superjoe30@gmail.com>2017-04-13 00:13:54 -0400
commit41144a8566a6fbd779403f6b69424bb640c94a7f (patch)
treeb4c5807dddca6d3eb66047aebccf6cc9d3fdd90c /src/ir_print.cpp
parentf043e0e85cac9330cf809bef177784c3cd133348 (diff)
downloadzig-41144a8566a6fbd779403f6b69424bb640c94a7f.tar.gz
zig-41144a8566a6fbd779403f6b69424bb640c94a7f.zip
ability to inline at function callsite
closes #306
Diffstat (limited to 'src/ir_print.cpp')
-rw-r--r--src/ir_print.cpp7
1 files changed, 7 insertions, 0 deletions
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");
}