diff options
| author | hryx <codroid@gmail.com> | 2019-06-08 16:23:27 -0700 |
|---|---|---|
| committer | hryx <codroid@gmail.com> | 2019-06-08 16:23:27 -0700 |
| commit | ad0f0562d8103d65bd36eb12ead899f375bda3e0 (patch) | |
| tree | 97adb8031a0647becf1a8b638494d8a79264c9c3 /src/ir_print.cpp | |
| parent | ed5b8335b564cc4372b12e1c1a1b459aa348a90d (diff) | |
| parent | 720ed74413f086a93f5ed66159300d8dd48e8034 (diff) | |
| download | zig-ad0f0562d8103d65bd36eb12ead899f375bda3e0.tar.gz zig-ad0f0562d8103d65bd36eb12ead899f375bda3e0.zip | |
Merge branch 'master' into translate-c-userland
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 dd671231c0..bf9ced89c5 100644 --- a/src/ir_print.cpp +++ b/src/ir_print.cpp @@ -1461,6 +1461,10 @@ static void ir_print_has_decl(IrPrint *irp, IrInstructionHasDecl *instruction) { fprintf(irp->f, ")"); } +static void ir_print_undeclared_ident(IrPrint *irp, IrInstructionUndeclaredIdent *instruction) { + fprintf(irp->f, "@undeclaredIdent(%s)", buf_ptr(instruction->name)); +} + static void ir_print_instruction(IrPrint *irp, IrInstruction *instruction) { ir_print_prefix(irp, instruction); switch (instruction->id) { @@ -1931,6 +1935,9 @@ static void ir_print_instruction(IrPrint *irp, IrInstruction *instruction) { case IrInstructionIdHasDecl: ir_print_has_decl(irp, (IrInstructionHasDecl *)instruction); break; + case IrInstructionIdUndeclaredIdent: + ir_print_undeclared_ident(irp, (IrInstructionUndeclaredIdent *)instruction); + break; } fprintf(irp->f, "\n"); } |
