diff options
author | Heejin Ahn <aheejin@gmail.com> | 2023-12-14 10:34:39 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-14 10:34:39 -0800 |
commit | cad983c975a05bc262437a6d7ed3a61020ef4e8d (patch) | |
tree | 5a208c87f48a10d0c2cee03bcb84e132e45cc48c /src/passes/MemoryPacking.cpp | |
parent | bdd96e8c21d23a57a99dcca9d4d802ff471243c3 (diff) | |
download | binaryen-cad983c975a05bc262437a6d7ed3a61020ef4e8d.tar.gz binaryen-cad983c975a05bc262437a6d7ed3a61020ef4e8d.tar.bz2 binaryen-cad983c975a05bc262437a6d7ed3a61020ef4e8d.zip |
Remove empty _ARRAY/_VECTOR defines (NFC) (#6182)
`_VECTOR` or `_ARRAY` defines in `wasm-delegations-fields.def` are
supposed to be defined in terms of their non-vector/array counterparts
when undefined. This removes empty `_VECTOR`/`_ARRAY` defines when
including `wasm-delegations-fields.def`, while adding definitions for
`DELEGATE_GET_FIELD` in case it is missing.
Diffstat (limited to 'src/passes/MemoryPacking.cpp')
-rw-r--r-- | src/passes/MemoryPacking.cpp | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/passes/MemoryPacking.cpp b/src/passes/MemoryPacking.cpp index 79e7b83a9..1d214abdc 100644 --- a/src/passes/MemoryPacking.cpp +++ b/src/passes/MemoryPacking.cpp @@ -481,13 +481,10 @@ void MemoryPacking::getSegmentReferrers(Module* module, #define DELEGATE_FIELD_CHILD(id, field) #define DELEGATE_FIELD_OPTIONAL_CHILD(id, field) #define DELEGATE_FIELD_INT(id, field) -#define DELEGATE_FIELD_INT_ARRAY(id, field) #define DELEGATE_FIELD_LITERAL(id, field) #define DELEGATE_FIELD_NAME(id, field) -#define DELEGATE_FIELD_NAME_VECTOR(id, field) #define DELEGATE_FIELD_SCOPE_NAME_DEF(id, field) #define DELEGATE_FIELD_SCOPE_NAME_USE(id, field) -#define DELEGATE_FIELD_SCOPE_NAME_USE_VECTOR(id, field) #define DELEGATE_FIELD_ADDRESS(id, field) #define DELEGATE_FIELD_NAME_KIND(id, field, kind) \ |