summaryrefslogtreecommitdiff
path: root/src/wasm.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/wasm.h')
-rw-r--r--src/wasm.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/wasm.h b/src/wasm.h
index 0050fcc28..5e4c4668b 100644
--- a/src/wasm.h
+++ b/src/wasm.h
@@ -1643,8 +1643,8 @@ public:
std::unique_ptr<StackIR> stackIR;
// local names. these are optional.
- std::map<Index, Name> localNames;
- std::map<Name, Index> localIndices;
+ std::unordered_map<Index, Name> localNames;
+ std::unordered_map<Name, Index> localIndices;
// Source maps debugging info: map expression nodes to their file, line, col.
struct DebugLocation {
@@ -1878,10 +1878,10 @@ private:
// TODO: add a build option where Names are just indices, and then these
// methods are not needed
// exports map is by the *exported* name, which is unique
- std::map<Name, Export*> exportsMap;
- std::map<Name, Function*> functionsMap;
- std::map<Name, Global*> globalsMap;
- std::map<Name, Event*> eventsMap;
+ std::unordered_map<Name, Export*> exportsMap;
+ std::unordered_map<Name, Function*> functionsMap;
+ std::unordered_map<Name, Global*> globalsMap;
+ std::unordered_map<Name, Event*> eventsMap;
public:
Module() = default;