From 4387c730386a462b043aa3ca8a7b01e17e44a88b Mon Sep 17 00:00:00 2001 From: Ashley Nelson Date: Tue, 26 Jul 2022 11:52:10 -0700 Subject: 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> --- src/wasm-binary.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/wasm-binary.h') 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 functionImports; // at index i we have all refs to the function i - std::map> functionRefs; + std::map> 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 tableImports; // at index i we have all references to the table i - std::map> tableRefs; + std::map> tableRefs; std::map elemTables; @@ -1552,7 +1552,7 @@ public: // their names std::vector globalImports; // at index i we have all refs to the global i - std::map> globalRefs; + std::map> globalRefs; // Throws a parsing error if we are not in a function context void requireFunctionContext(const char* error); -- cgit v1.2.3