aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorkristopher tate <kt@connectfree.co.jp>2018-07-27 19:19:16 +0900
committerkristopher tate <kt@connectfree.co.jp>2018-08-02 16:50:08 +0900
commitda5f3d5c4c79b1d0d0919a0226f5304081b2f049 (patch)
treef7103d0dd69d5ceb932de53119722041db3277fe /src
parentcd18186715bf532715c03d8e67096606fe0f2bee (diff)
downloadzig-da5f3d5c4c79b1d0d0919a0226f5304081b2f049.tar.gz
zig-da5f3d5c4c79b1d0d0919a0226f5304081b2f049.zip
src/ir_print.cpp: support `@handle()`;
Tracking Issue #1296 ;
Diffstat (limited to 'src')
-rw-r--r--src/ir_print.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/ir_print.cpp b/src/ir_print.cpp
index 127afa94a5..77c7ef47b6 100644
--- a/src/ir_print.cpp
+++ b/src/ir_print.cpp
@@ -791,6 +791,10 @@ static void ir_print_frame_address(IrPrint *irp, IrInstructionFrameAddress *inst
fprintf(irp->f, "@frameAddress()");
}
+static void ir_print_handle(IrPrint *irp, IrInstructionHandle *instruction) {
+ fprintf(irp->f, "@handle()");
+}
+
static void ir_print_return_address(IrPrint *irp, IrInstructionReturnAddress *instruction) {
fprintf(irp->f, "@returnAddress()");
}
@@ -1556,6 +1560,9 @@ static void ir_print_instruction(IrPrint *irp, IrInstruction *instruction) {
case IrInstructionIdFrameAddress:
ir_print_frame_address(irp, (IrInstructionFrameAddress *)instruction);
break;
+ case IrInstructionIdHandle:
+ ir_print_handle(irp, (IrInstructionHandle *)instruction);
+ break;
case IrInstructionIdAlignOf:
ir_print_align_of(irp, (IrInstructionAlignOf *)instruction);
break;