summaryrefslogtreecommitdiff
path: root/src/wasm-binary.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/wasm-binary.h')
-rw-r--r--src/wasm-binary.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/wasm-binary.h b/src/wasm-binary.h
index bcf6cf45f..068f59d62 100644
--- a/src/wasm-binary.h
+++ b/src/wasm-binary.h
@@ -826,8 +826,6 @@ public:
void readMemory();
void readSignatures();
- std::vector<Name> functionImportIndexes; // index in function index space => name of function import
-
// gets a name in the combined function import+defined function space
Name getFunctionIndexName(Index i);
void getResizableLimits(Address& initial, Address& max, bool& shared, Address defaultIfNoMax);
@@ -844,7 +842,9 @@ public:
// We read functions before we know their names, so we need to backpatch the names later
std::vector<Function*> functions; // we store functions here before wasm.addFunction after we know their names
+ std::vector<Import*> functionImports; // we store function imports here before wasm.addFunctionImport after we know their names
std::map<Index, std::vector<Call*>> functionCalls; // at index i we have all calls to the defined function i
+ std::map<Index, std::vector<CallImport*>> functionImportCalls; // at index i we have all callImports to the imported function i
Function* currFunction = nullptr;
Index endOfFunction = -1; // before we see a function (like global init expressions), there is no end of function to check