summaryrefslogtreecommitdiff
path: root/src/ir.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/ir.h')
-rw-r--r--src/ir.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ir.h b/src/ir.h
index 0db30a6c..4e6284a2 100644
--- a/src/ir.h
+++ b/src/ir.h
@@ -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;