aboutsummaryrefslogtreecommitdiff
path: root/src/ir_print.cpp
diff options
context:
space:
mode:
authorAndrew Kelley <superjoe30@gmail.com>2016-11-21 15:36:25 -0500
committerAndrew Kelley <superjoe30@gmail.com>2016-11-21 15:36:25 -0500
commita2257e4b81764f8603a39b74eae3622651ec7d6b (patch)
tree6e046fee9d846528f4259926d49e4c1ec8208df4 /src/ir_print.cpp
parent052cd44588a94550a431adc6d1ff5af7e4439c88 (diff)
downloadzig-a2257e4b81764f8603a39b74eae3622651ec7d6b.tar.gz
zig-a2257e4b81764f8603a39b74eae3622651ec7d6b.zip
IR: implement setFnVisible builtin
Diffstat (limited to 'src/ir_print.cpp')
-rw-r--r--src/ir_print.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/ir_print.cpp b/src/ir_print.cpp
index b51adaf7d6..d48cc9fcab 100644
--- a/src/ir_print.cpp
+++ b/src/ir_print.cpp
@@ -425,6 +425,14 @@ static void ir_print_set_fn_test(IrPrint *irp, IrInstructionSetFnTest *instructi
fprintf(irp->f, ")");
}
+static void ir_print_set_fn_visible(IrPrint *irp, IrInstructionSetFnVisible *instruction) {
+ fprintf(irp->f, "@setFnVisible(");
+ ir_print_other_instruction(irp, instruction->fn_value);
+ fprintf(irp->f, ", ");
+ ir_print_other_instruction(irp, instruction->is_visible);
+ fprintf(irp->f, ")");
+}
+
static void ir_print_set_debug_safety(IrPrint *irp, IrInstructionSetDebugSafety *instruction) {
fprintf(irp->f, "@setDebugSafety(");
ir_print_other_instruction(irp, instruction->scope_value);
@@ -603,6 +611,9 @@ static void ir_print_instruction(IrPrint *irp, IrInstruction *instruction) {
case IrInstructionIdSetFnTest:
ir_print_set_fn_test(irp, (IrInstructionSetFnTest *)instruction);
break;
+ case IrInstructionIdSetFnVisible:
+ ir_print_set_fn_visible(irp, (IrInstructionSetFnVisible *)instruction);
+ break;
case IrInstructionIdSetDebugSafety:
ir_print_set_debug_safety(irp, (IrInstructionSetDebugSafety *)instruction);
break;