diff options
Diffstat (limited to 'src/wasm.h')
-rw-r--r-- | src/wasm.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/wasm.h b/src/wasm.h index 47cc047bb..a7a2e0b1e 100644 --- a/src/wasm.h +++ b/src/wasm.h @@ -2310,6 +2310,13 @@ public: Global* getGlobalOrNull(Name name); Tag* getTagOrNull(Name name); + // get* methods that are generic over the kind, that is, items are identified + // by their kind and their name. Otherwise, they are similar to the above + // get* methods. These return items that can be imports. + // TODO: Add methods for things that cannot be imports (segments). + Importable* getImport(ModuleItemKind kind, Name name); + Importable* getImportOrNull(ModuleItemKind kind, Name name); + Export* addExport(Export* curr); Function* addFunction(Function* curr); Global* addGlobal(Global* curr); |