diff options
| author | Andrew Kelley <superjoe30@gmail.com> | 2018-01-25 11:51:41 -0500 |
|---|---|---|
| committer | Andrew Kelley <superjoe30@gmail.com> | 2018-01-25 11:51:41 -0500 |
| commit | 47be64af5add5c146541c16dbb043ddf97f97d34 (patch) | |
| tree | 3fabcb50c94b254a71cdbf009f29ad1ece6b1f67 /src/ir_print.cpp | |
| parent | 4556f448060b19492d7b104ff01585241ba9c256 (diff) | |
| parent | f7670882aff5fb3a943057edd9da34d053b5fe59 (diff) | |
| download | zig-47be64af5add5c146541c16dbb043ddf97f97d34.tar.gz zig-47be64af5add5c146541c16dbb043ddf97f97d34.zip | |
Merge remote-tracking branch 'origin/master' into llvm6
Diffstat (limited to 'src/ir_print.cpp')
| -rw-r--r-- | src/ir_print.cpp | 21 |
1 files changed, 14 insertions, 7 deletions
diff --git a/src/ir_print.cpp b/src/ir_print.cpp index 930d22f21a..8332212d34 100644 --- a/src/ir_print.cpp +++ b/src/ir_print.cpp @@ -368,11 +368,15 @@ static void ir_print_union_field_ptr(IrPrint *irp, IrInstructionUnionFieldPtr *i 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); - fprintf(irp->f, ", "); - ir_print_other_instruction(irp, instruction->debug_safety_on); +static void ir_print_set_cold(IrPrint *irp, IrInstructionSetCold *instruction) { + fprintf(irp->f, "@setCold("); + ir_print_other_instruction(irp, instruction->is_cold); + fprintf(irp->f, ")"); +} + +static void ir_print_set_runtime_safety(IrPrint *irp, IrInstructionSetRuntimeSafety *instruction) { + fprintf(irp->f, "@setRuntimeSafety("); + ir_print_other_instruction(irp, instruction->safety_on); fprintf(irp->f, ")"); } @@ -1081,8 +1085,11 @@ static void ir_print_instruction(IrPrint *irp, IrInstruction *instruction) { case IrInstructionIdUnionFieldPtr: ir_print_union_field_ptr(irp, (IrInstructionUnionFieldPtr *)instruction); break; - case IrInstructionIdSetDebugSafety: - ir_print_set_debug_safety(irp, (IrInstructionSetDebugSafety *)instruction); + case IrInstructionIdSetCold: + ir_print_set_cold(irp, (IrInstructionSetCold *)instruction); + break; + case IrInstructionIdSetRuntimeSafety: + ir_print_set_runtime_safety(irp, (IrInstructionSetRuntimeSafety *)instruction); break; case IrInstructionIdSetFloatMode: ir_print_set_float_mode(irp, (IrInstructionSetFloatMode *)instruction); |
