diff options
| author | Andrew Kelley <superjoe30@gmail.com> | 2017-01-08 22:25:38 -0500 |
|---|---|---|
| committer | Andrew Kelley <superjoe30@gmail.com> | 2017-01-08 22:25:38 -0500 |
| commit | 6caf32195af7aab084f3f2fee37239de0eb67adb (patch) | |
| tree | e9d8fb542726bbf503b01627c1841181f93610c4 /src/ir_print.cpp | |
| parent | 76d0e49e612d661b57b795cd81f5ba06dc26ceca (diff) | |
| download | zig-6caf32195af7aab084f3f2fee37239de0eb67adb.tar.gz zig-6caf32195af7aab084f3f2fee37239de0eb67adb.zip | |
pass unnecessary if statement test
Diffstat (limited to 'src/ir_print.cpp')
| -rw-r--r-- | src/ir_print.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/ir_print.cpp b/src/ir_print.cpp index c3df0df831..1f4d368afc 100644 --- a/src/ir_print.cpp +++ b/src/ir_print.cpp @@ -492,6 +492,12 @@ static void ir_print_static_eval(IrPrint *irp, IrInstructionStaticEval *instruct fprintf(irp->f, ")"); } +static void ir_print_generated_code(IrPrint *irp, IrInstructionGeneratedCode *instruction) { + fprintf(irp->f, "@generatedCode("); + ir_print_other_instruction(irp, instruction->value); + fprintf(irp->f, ")"); +} + static void ir_print_import(IrPrint *irp, IrInstructionImport *instruction) { fprintf(irp->f, "@import("); ir_print_other_instruction(irp, instruction->name); @@ -921,6 +927,9 @@ static void ir_print_instruction(IrPrint *irp, IrInstruction *instruction) { case IrInstructionIdStaticEval: ir_print_static_eval(irp, (IrInstructionStaticEval *)instruction); break; + case IrInstructionIdGeneratedCode: + ir_print_generated_code(irp, (IrInstructionGeneratedCode *)instruction); + break; case IrInstructionIdImport: ir_print_import(irp, (IrInstructionImport *)instruction); break; |
