diff options
Diffstat (limited to 'src/wasm.h')
-rw-r--r-- | src/wasm.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/wasm.h b/src/wasm.h index 21fef1049..73f22e7d7 100644 --- a/src/wasm.h +++ b/src/wasm.h @@ -1460,6 +1460,13 @@ public: std::vector<char> data; }; +// The optional "dylink" section is used in dynamic linking. +class DylinkSection { +public: + Index memorySize, memoryAlignment, tableSize, tableAlignment; + std::vector<Name> neededDynlibs; +}; + class Module { public: // wasm contents (generally you shouldn't access these from outside, except @@ -1475,6 +1482,9 @@ public: std::vector<UserSection> userSections; + // Optional user section IR representation. + std::unique_ptr<DylinkSection> dylinkSection; + // Source maps debug info. std::vector<std::string> debugInfoFileNames; |