Skip to content

Commit fe4ed6a

Browse files
Fix compilation errors in aot-analyzer tool (#3584)
Corrected compilation failures due to structure changes, like AOTImportTable.
1 parent a5753ea commit fe4ed6a

1 file changed

Lines changed: 12 additions & 10 deletions

File tree

test-tools/aot-analyzer/src/main.cc

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -272,8 +272,8 @@ DumpDetails(AoTFile *aot)
272272
AOTImportMemory memory = import_memories[index];
273273
printf(" -[%u] num_bytes_per_page:%5u init_page_count:%5u "
274274
"max_page_count:%5u module_name: %s memory_name: %s\n",
275-
index, memory.memory.num_bytes_per_page,
276-
memory.memory.init_page_count, memory.memory.max_page_count,
275+
index, memory.mem_type.num_bytes_per_page,
276+
memory.mem_type.init_page_count, memory.mem_type.max_page_count,
277277
memory.module_name, memory.memory_name);
278278
}
279279
printf("\n");
@@ -285,14 +285,15 @@ DumpDetails(AoTFile *aot)
285285
printf(" -[%u] ", index);
286286
printf("elem_type: ");
287287
#if WASM_ENABLE_GC != 0
288-
wasm_dump_value_type(table.elem_type, table.elem_ref_type);
288+
wasm_dump_value_type(table.table_type.elem_type,
289+
table.table_type.elem_ref_type);
289290
#else
290-
dump_value_type(table.elem_type);
291+
dump_value_type(table.table_type.elem_type);
291292
#endif
292293
printf(" init_size:%5u max_size:%5u "
293294
"module_name: %s table_name: %s\n",
294295
table.table_type.init_size, table.table_type.max_size,
295-
table.module_name, table.table_type.name);
296+
table.module_name, table.table_name);
296297
}
297298
printf("\n");
298299

@@ -302,7 +303,7 @@ DumpDetails(AoTFile *aot)
302303
AOTImportGlobal global = import_globals[index];
303304
printf(" -[%u] ", index);
304305
printf("type: ");
305-
dump_value_type(global.type);
306+
dump_value_type(global.type.val_type);
306307
printf(" module_name: %s global_name: %s\n", global.module_name,
307308
global.global_name);
308309
}
@@ -348,9 +349,10 @@ DumpDetails(AoTFile *aot)
348349
printf(" -[%u] ", index);
349350
printf("elem_type: ");
350351
#if WASM_ENABLE_GC != 0
351-
wasm_dump_value_type(table.elem_type, table.elem_ref_type);
352+
wasm_dump_value_type(table.table_type.elem_type,
353+
table.table_type.elem_ref_type);
352354
#else
353-
dump_value_type(table.elem_type);
355+
dump_value_type(table.table_type.elem_type);
354356
#endif
355357
printf(" init_size:%5u max_size:%5u\n",
356358
table.table_type.init_size, table.table_type.max_size);
@@ -382,9 +384,9 @@ DumpDetails(AoTFile *aot)
382384
AOTGlobal global = globals[index];
383385
printf(" -[%u] ", index);
384386
printf("type: ");
385-
dump_value_type(global.type);
387+
dump_value_type(global.type.val_type);
386388
printf(" is_mutable: %d size: %u data_offset: %u\n",
387-
global.is_mutable, global.size, global.data_offset);
389+
global.type.is_mutable, global.size, global.data_offset);
388390
}
389391
printf("\n\n");
390392

0 commit comments

Comments
 (0)