added printing type table
authorBrendan Hansen <brendan.f.hansen@gmail.com>
Fri, 8 Oct 2021 19:57:04 +0000 (14:57 -0500)
committerBrendan Hansen <brendan.f.hansen@gmail.com>
Fri, 8 Oct 2021 19:57:04 +0000 (14:57 -0500)
src/wasm_type_table.c

index b72fabab910421136e782421b1fd29303ae13939..966327409d04a6f0b932e96456e638c175a7394e 100644 (file)
@@ -466,6 +466,10 @@ u64 build_type_table(OnyxWasmModule* module) {
         }
     }
 
+    if (context.options->verbose_output == 1) {
+        bh_printf("Type table size: %d bytes.\n", table_buffer.length);
+    }
+
     u32 offset = module->next_datum_offset;
     bh_align(offset, 8);