Removes unnecessary .Index field of FunctionInstance (#1270)

Signed-off-by: Takeshi Yoneda <takeshi@tetrate.io>
This commit is contained in:
Takeshi Yoneda
2023-03-22 02:55:35 -07:00
committed by GitHub
parent 8c0e30b5f3
commit c20073d228
5 changed files with 7 additions and 12 deletions

View File

@@ -604,7 +604,6 @@ func (m *ModuleInstance) BuildFunctions(mod *Module, importedFunctions []*Functi
fns[offset] = FunctionInstance{
TypeID: m.TypeIDs[section],
Module: m,
Idx: d.index,
Type: d.funcType,
Definition: d,
}

View File

@@ -114,9 +114,6 @@ type (
// TypeID is assigned by a store for FunctionType.
TypeID FunctionTypeID
// Idx holds the index of this function instance in the function index (beginning with imports).
Idx Index
// Definition is known at compile time.
Definition api.FunctionDefinition
}