authorgravatar for kt@connectfree.co.jpkristopher tate <kt@connectfree.co.jp> 2018-07-27 19:19:16+09:00
committergravatar for kt@connectfree.co.jpkristopher tate <kt@connectfree.co.jp> 2018-08-02 16:50:08+09:00
logda5f3d5c4c79b1d0d0919a0226f5304081b2f049
treef7103d0dd69d5ceb932de53119722041db3277fe
parentcd18186715bf532715c03d8e67096606fe0f2bee

src/ir_print.cpp: support `@handle()`;

Tracking Issue #1296 ;

1 files changed, 7 insertions(+), 0 deletions(-)

src/ir_print.cpp+7
......@@ -791,6 +791,10 @@ static void ir_print_frame_address(IrPrint *irp, IrInstructionFrameAddress *inst
791791 fprintf(irp->f, "@frameAddress()");
792792}
793793
794static void ir_print_handle(IrPrint *irp, IrInstructionHandle *instruction) {
795 fprintf(irp->f, "@handle()");
796}
797
794798static void ir_print_return_address(IrPrint *irp, IrInstructionReturnAddress *instruction) {
795799 fprintf(irp->f, "@returnAddress()");
796800}
......@@ -1556,6 +1560,9 @@ static void ir_print_instruction(IrPrint *irp, IrInstruction *instruction) {
15561560 case IrInstructionIdFrameAddress:
15571561 ir_print_frame_address(irp, (IrInstructionFrameAddress *)instruction);
15581562 break;
1563 case IrInstructionIdHandle:
1564 ir_print_handle(irp, (IrInstructionHandle *)instruction);
1565 break;
15591566 case IrInstructionIdAlignOf:
15601567 ir_print_align_of(irp, (IrInstructionAlignOf *)instruction);
15611568 break;