Add the support for custom name section (#398)
Add the function name field for internal function struct Signed-off-by: Zhongmin Wu <vwzm@live.com> Signed-off-by: Xiaokang Qin <xiaokang.qxk@antgroup.com> Co-authored-by: Zhongmin Wu <vwzm@live.com>
This commit is contained in:
@ -56,6 +56,10 @@ extern "C" {
|
||||
#define SECTION_TYPE_DATACOUNT 12
|
||||
#endif
|
||||
|
||||
#define SUB_SECTION_TYPE_MODULE 0
|
||||
#define SUB_SECTION_TYPE_FUNC 1
|
||||
#define SUB_SECTION_TYPE_LOCAL 2
|
||||
|
||||
#define IMPORT_KIND_FUNC 0
|
||||
#define IMPORT_KIND_TABLE 1
|
||||
#define IMPORT_KIND_MEMORY 2
|
||||
@ -196,6 +200,9 @@ typedef struct WASMImport {
|
||||
} WASMImport;
|
||||
|
||||
struct WASMFunction {
|
||||
#if WASM_ENABLE_CUSTOM_NAME_SECTION != 0
|
||||
char *field_name;
|
||||
#endif
|
||||
/* the type of function */
|
||||
WASMType *func_type;
|
||||
uint32 local_count;
|
||||
|
||||
Reference in New Issue
Block a user