mirror of
https://github.com/bytecodealliance/wasm-micro-runtime.git
synced 2025-09-05 17:32:26 +00:00
Refactor AOTObjectData definition to use a forward declaration (#4428)
> core/iwasm/compilation/aot_emit_aot_file.c:85:3: error: redefinition of typedef 'AOTObjectData' is a C11 feature
This commit is contained in:
parent
cb233ec042
commit
430cc5e5ef
|
@ -48,7 +48,7 @@ typedef struct AOTSymbolList {
|
||||||
} AOTSymbolList;
|
} AOTSymbolList;
|
||||||
|
|
||||||
/* AOT object data */
|
/* AOT object data */
|
||||||
typedef struct AOTObjectData {
|
struct AOTObjectData {
|
||||||
AOTCompContext *comp_ctx;
|
AOTCompContext *comp_ctx;
|
||||||
|
|
||||||
LLVMMemoryBufferRef mem_buf;
|
LLVMMemoryBufferRef mem_buf;
|
||||||
|
@ -82,7 +82,7 @@ typedef struct AOTObjectData {
|
||||||
const char *stack_sizes_section_name;
|
const char *stack_sizes_section_name;
|
||||||
uint32 stack_sizes_offset;
|
uint32 stack_sizes_offset;
|
||||||
uint32 *stack_sizes;
|
uint32 *stack_sizes;
|
||||||
} AOTObjectData;
|
};
|
||||||
|
|
||||||
#if 0
|
#if 0
|
||||||
static void dump_buf(uint8 *buf, uint32 size, char *title)
|
static void dump_buf(uint8 *buf, uint32 size, char *title)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user