diff options
| author | Andrew Kelley <superjoe30@gmail.com> | 2016-12-13 01:48:40 -0500 |
|---|---|---|
| committer | Andrew Kelley <superjoe30@gmail.com> | 2016-12-13 01:48:40 -0500 |
| commit | a6d2bdf6050642762cc7bc193bca34690f712d49 (patch) | |
| tree | 10db99199b91f09b0eb908013f96e35a6a5eceae /src/ir_print.cpp | |
| parent | 76a849b1f2c1bb57de4baf8dfd49fe9f9e2340f3 (diff) | |
| download | zig-a6d2bdf6050642762cc7bc193bca34690f712d49.tar.gz zig-a6d2bdf6050642762cc7bc193bca34690f712d49.zip | |
IR: implement breakpoint builtin
Diffstat (limited to 'src/ir_print.cpp')
| -rw-r--r-- | src/ir_print.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/ir_print.cpp b/src/ir_print.cpp index ede1c6461d..186de8b449 100644 --- a/src/ir_print.cpp +++ b/src/ir_print.cpp @@ -812,6 +812,10 @@ static void ir_print_member_count(IrPrint *irp, IrInstructionMemberCount *instru fprintf(irp->f, ")"); } +static void ir_print_breakpoint(IrPrint *irp, IrInstructionBreakpoint *instruction) { + fprintf(irp->f, "@breakpoint()"); +} + static void ir_print_instruction(IrPrint *irp, IrInstruction *instruction) { ir_print_prefix(irp, instruction); switch (instruction->id) { @@ -1009,6 +1013,9 @@ static void ir_print_instruction(IrPrint *irp, IrInstruction *instruction) { case IrInstructionIdMemberCount: ir_print_member_count(irp, (IrInstructionMemberCount *)instruction); break; + case IrInstructionIdBreakpoint: + ir_print_breakpoint(irp, (IrInstructionBreakpoint *)instruction); + break; } fprintf(irp->f, "\n"); } |
