diff options
author | Ashley Nelson <nashley@google.com> | 2022-07-26 11:52:10 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-26 11:52:10 -0700 |
commit | 4387c730386a462b043aa3ca8a7b01e17e44a88b (patch) | |
tree | 0d9cb379479e2f3e08f07854b90783a1a8708686 /src/wasm-binary.h | |
parent | 2886dd131eb99410e4fa87a291b07383f05abb16 (diff) | |
download | binaryen-4387c730386a462b043aa3ca8a7b01e17e44a88b.tar.gz binaryen-4387c730386a462b043aa3ca8a7b01e17e44a88b.tar.bz2 binaryen-4387c730386a462b043aa3ca8a7b01e17e44a88b.zip |
Changing ref maps in wasm-binary to use a value of a vector of Name* (#4830)
* Changing ref maps in wasm-binary to use a value of a vector of Name*
* clang-format
* Update src/wasm/wasm-binary.cpp
Co-authored-by: Thomas Lively <7121787+tlively@users.noreply.github.com>
Co-authored-by: Thomas Lively <7121787+tlively@users.noreply.github.com>
Diffstat (limited to 'src/wasm-binary.h')
-rw-r--r-- | src/wasm-binary.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/wasm-binary.h b/src/wasm-binary.h index cf0428625..a866881f5 100644 --- a/src/wasm-binary.h +++ b/src/wasm-binary.h @@ -1523,7 +1523,7 @@ public: // their names std::vector<Function*> functionImports; // at index i we have all refs to the function i - std::map<Index, std::vector<Expression*>> functionRefs; + std::map<Index, std::vector<Name*>> functionRefs; Function* currFunction = nullptr; // before we see a function (like global init expressions), there is no end of // function to check @@ -1535,7 +1535,7 @@ public: // their names std::vector<Table*> tableImports; // at index i we have all references to the table i - std::map<Index, std::vector<Expression*>> tableRefs; + std::map<Index, std::vector<Name*>> tableRefs; std::map<Index, Name> elemTables; @@ -1552,7 +1552,7 @@ public: // their names std::vector<Global*> globalImports; // at index i we have all refs to the global i - std::map<Index, std::vector<Expression*>> globalRefs; + std::map<Index, std::vector<Name*>> globalRefs; // Throws a parsing error if we are not in a function context void requireFunctionContext(const char* error); |