mirror of
https://github.com/bytecodealliance/wasm-micro-runtime.git
synced 2025-05-08 20:56:13 +00:00
Fix compilation errors in aot-analyzer tool (#3584)
Corrected compilation failures due to structure changes, like AOTImportTable.
This commit is contained in:
parent
a5753ea920
commit
fe4ed6adf2
|
@ -272,8 +272,8 @@ DumpDetails(AoTFile *aot)
|
||||||
AOTImportMemory memory = import_memories[index];
|
AOTImportMemory memory = import_memories[index];
|
||||||
printf(" -[%u] num_bytes_per_page:%5u init_page_count:%5u "
|
printf(" -[%u] num_bytes_per_page:%5u init_page_count:%5u "
|
||||||
"max_page_count:%5u module_name: %s memory_name: %s\n",
|
"max_page_count:%5u module_name: %s memory_name: %s\n",
|
||||||
index, memory.memory.num_bytes_per_page,
|
index, memory.mem_type.num_bytes_per_page,
|
||||||
memory.memory.init_page_count, memory.memory.max_page_count,
|
memory.mem_type.init_page_count, memory.mem_type.max_page_count,
|
||||||
memory.module_name, memory.memory_name);
|
memory.module_name, memory.memory_name);
|
||||||
}
|
}
|
||||||
printf("\n");
|
printf("\n");
|
||||||
|
@ -285,14 +285,15 @@ DumpDetails(AoTFile *aot)
|
||||||
printf(" -[%u] ", index);
|
printf(" -[%u] ", index);
|
||||||
printf("elem_type: ");
|
printf("elem_type: ");
|
||||||
#if WASM_ENABLE_GC != 0
|
#if WASM_ENABLE_GC != 0
|
||||||
wasm_dump_value_type(table.elem_type, table.elem_ref_type);
|
wasm_dump_value_type(table.table_type.elem_type,
|
||||||
|
table.table_type.elem_ref_type);
|
||||||
#else
|
#else
|
||||||
dump_value_type(table.elem_type);
|
dump_value_type(table.table_type.elem_type);
|
||||||
#endif
|
#endif
|
||||||
printf(" init_size:%5u max_size:%5u "
|
printf(" init_size:%5u max_size:%5u "
|
||||||
"module_name: %s table_name: %s\n",
|
"module_name: %s table_name: %s\n",
|
||||||
table.table_type.init_size, table.table_type.max_size,
|
table.table_type.init_size, table.table_type.max_size,
|
||||||
table.module_name, table.table_type.name);
|
table.module_name, table.table_name);
|
||||||
}
|
}
|
||||||
printf("\n");
|
printf("\n");
|
||||||
|
|
||||||
|
@ -302,7 +303,7 @@ DumpDetails(AoTFile *aot)
|
||||||
AOTImportGlobal global = import_globals[index];
|
AOTImportGlobal global = import_globals[index];
|
||||||
printf(" -[%u] ", index);
|
printf(" -[%u] ", index);
|
||||||
printf("type: ");
|
printf("type: ");
|
||||||
dump_value_type(global.type);
|
dump_value_type(global.type.val_type);
|
||||||
printf(" module_name: %s global_name: %s\n", global.module_name,
|
printf(" module_name: %s global_name: %s\n", global.module_name,
|
||||||
global.global_name);
|
global.global_name);
|
||||||
}
|
}
|
||||||
|
@ -348,9 +349,10 @@ DumpDetails(AoTFile *aot)
|
||||||
printf(" -[%u] ", index);
|
printf(" -[%u] ", index);
|
||||||
printf("elem_type: ");
|
printf("elem_type: ");
|
||||||
#if WASM_ENABLE_GC != 0
|
#if WASM_ENABLE_GC != 0
|
||||||
wasm_dump_value_type(table.elem_type, table.elem_ref_type);
|
wasm_dump_value_type(table.table_type.elem_type,
|
||||||
|
table.table_type.elem_ref_type);
|
||||||
#else
|
#else
|
||||||
dump_value_type(table.elem_type);
|
dump_value_type(table.table_type.elem_type);
|
||||||
#endif
|
#endif
|
||||||
printf(" init_size:%5u max_size:%5u\n",
|
printf(" init_size:%5u max_size:%5u\n",
|
||||||
table.table_type.init_size, table.table_type.max_size);
|
table.table_type.init_size, table.table_type.max_size);
|
||||||
|
@ -382,9 +384,9 @@ DumpDetails(AoTFile *aot)
|
||||||
AOTGlobal global = globals[index];
|
AOTGlobal global = globals[index];
|
||||||
printf(" -[%u] ", index);
|
printf(" -[%u] ", index);
|
||||||
printf("type: ");
|
printf("type: ");
|
||||||
dump_value_type(global.type);
|
dump_value_type(global.type.val_type);
|
||||||
printf(" is_mutable: %d size: %u data_offset: %u\n",
|
printf(" is_mutable: %d size: %u data_offset: %u\n",
|
||||||
global.is_mutable, global.size, global.data_offset);
|
global.type.is_mutable, global.size, global.data_offset);
|
||||||
}
|
}
|
||||||
printf("\n\n");
|
printf("\n\n");
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user