diff options
Diffstat (limited to 'src/ir.h')
-rw-r--r-- | src/ir.h | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -393,6 +393,8 @@ struct Func { Type GetParamType(Index index) const { return decl.GetParamType(index); } Type GetResultType(Index index) const { return decl.GetResultType(index); } + Type GetLocalType(Index index) const; + Type GetLocalType(const Var& var) const; Index GetNumParams() const { return decl.GetNumParams(); } Index GetNumLocals() const { return local_types.size(); } Index GetNumParamsAndLocals() const { @@ -674,8 +676,10 @@ struct Module { const Func* GetFunc(const Var&) const; Func* GetFunc(const Var&); Index GetTableIndex(const Var&) const; + const Table* GetTable(const Var&) const; Table* GetTable(const Var&); Index GetMemoryIndex(const Var&) const; + const Memory* GetMemory(const Var&) const; Memory* GetMemory(const Var&); Index GetGlobalIndex(const Var&) const; const Global* GetGlobal(const Var&) const; |