summaryrefslogtreecommitdiff
path: root/src/wasm-binary.h
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2017-10-20 19:38:31 -0700
committerGitHub <noreply@github.com>2017-10-20 19:38:31 -0700
commit1005b1267f70a5a7cf7a8774af6c12d813464720 (patch)
tree04b27ca5a8fddcef4941681ec81d680c4351c74a /src/wasm-binary.h
parent71dc0791361a79e4346eb84ebadf77a324767e32 (diff)
downloadbinaryen-1005b1267f70a5a7cf7a8774af6c12d813464720.tar.gz
binaryen-1005b1267f70a5a7cf7a8774af6c12d813464720.tar.bz2
binaryen-1005b1267f70a5a7cf7a8774af6c12d813464720.zip
Emit binary function index in comment in text format, for convenience (#1232)
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 bf1cb14d6..bcf6cf45f 100644
--- a/src/wasm-binary.h
+++ b/src/wasm-binary.h
@@ -696,8 +696,8 @@ public:
void writeExports();
void writeDataSegments();
- std::map<Name, Index> mappedFunctions; // name of the Function => index. first imports, then internals
- std::map<Name, uint32_t> mappedGlobals; // name of the Global => index. first imported globals, then internal globals
+ std::unordered_map<Name, Index> mappedFunctions; // name of the Function => index. first imports, then internals
+ std::unordered_map<Name, uint32_t> mappedGlobals; // name of the Global => index. first imported globals, then internal globals
uint32_t getFunctionIndex(Name name);
uint32_t getGlobalIndex(Name name);