diff options
author | Alon Zakai <alonzakai@gmail.com> | 2016-04-04 17:24:07 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2016-04-04 17:24:07 -0700 |
commit | b243bf42bf89bee18ece60fb0607cf1fb70ce702 (patch) | |
tree | cbef2b087729ea063d9827155873686b71ec1dd1 /src/wasm2asm.h | |
parent | f84152a645d5585bb16f37164f838f87bfcf972e (diff) | |
parent | e6e701474b102b0f9b9d15f6b2c82f26cf956b6d (diff) | |
download | binaryen-b243bf42bf89bee18ece60fb0607cf1fb70ce702.tar.gz binaryen-b243bf42bf89bee18ece60fb0607cf1fb70ce702.tar.bz2 binaryen-b243bf42bf89bee18ece60fb0607cf1fb70ce702.zip |
Merge pull request #311 from WebAssembly/module-access
Access module elements using calls
Diffstat (limited to 'src/wasm2asm.h')
-rw-r--r-- | src/wasm2asm.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wasm2asm.h b/src/wasm2asm.h index 310ba4224..0d8422ab1 100644 --- a/src/wasm2asm.h +++ b/src/wasm2asm.h @@ -287,7 +287,7 @@ void Wasm2AsmBuilder::addTables(Ref ast, Module *wasm) { std::map<std::string, std::vector<IString>> tables; // asm.js tables, sig => contents of table for (size_t i = 0; i < wasm->table.names.size(); i++) { Name name = wasm->table.names[i]; - auto func = wasm->functionsMap[name]; + auto func = wasm->getFunction(name); std::string sig = getSig(func); auto& table = tables[sig]; if (table.size() == 0) { |