From 0c91ec9d3ffdcc3a978eaa3bc02470462d34df7a Mon Sep 17 00:00:00 2001 From: midipix Date: Sat, 30 Jan 2016 20:15:20 -0500 Subject: driver: --print-structs and --print-unions: initial integration. --- src/driver/amgc_driver_ctx.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/driver/amgc_driver_ctx.c') diff --git a/src/driver/amgc_driver_ctx.c b/src/driver/amgc_driver_ctx.c index 4489109..ffe319d 100644 --- a/src/driver/amgc_driver_ctx.c +++ b/src/driver/amgc_driver_ctx.c @@ -209,6 +209,16 @@ int amgc_get_driver_ctx( if (!strcmp("primary",entry->arg)) ctx->actions[nactions++].subset = TYPE_ATOMIC; break; + + case TAG_PRINT_STRUCTS: + ctx->actions[nactions].type = AMGC_ACTION_OUTPUT; + ctx->actions[nactions++].action = AMGC_OUTPUT_STRUCT; + break; + + case TAG_PRINT_UNIONS: + ctx->actions[nactions].type = AMGC_ACTION_OUTPUT; + ctx->actions[nactions++].action = AMGC_OUTPUT_UNION; + break; } ctx->ctx.program = program; -- cgit v1.2.3