diff options
author | Alon Zakai <alonzakai@gmail.com> | 2016-01-19 15:26:48 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2016-01-19 15:26:48 -0800 |
commit | 22ed7f49494e6ecf6c431b40ab6961953c2e3a8b (patch) | |
tree | 3dcdcf45d2ec47a86073d9d946e7e3e319cbe695 /src/s2wasm.h | |
parent | d3390ed43dbfb4834273b4296521f95b4d448654 (diff) | |
parent | 1021013aa7efdd6d071a8b053f87de846a6d30bd (diff) | |
download | binaryen-22ed7f49494e6ecf6c431b40ab6961953c2e3a8b.tar.gz binaryen-22ed7f49494e6ecf6c431b40ab6961953c2e3a8b.tar.bz2 binaryen-22ed7f49494e6ecf6c431b40ab6961953c2e3a8b.zip |
Merge pull request #103 from mbebenita/static-poly
Use LLVM style static polymorphism for AST Visitors
Diffstat (limited to 'src/s2wasm.h')
-rw-r--r-- | src/s2wasm.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/s2wasm.h b/src/s2wasm.h index 2f9b4c8d8..46cf972c8 100644 --- a/src/s2wasm.h +++ b/src/s2wasm.h @@ -1102,7 +1102,7 @@ public: o << ";; METADATA: { "; // find asmConst calls, and emit their metadata - struct AsmConstWalker : public WasmWalker { + struct AsmConstWalker : public WasmWalker<AsmConstWalker> { S2WasmBuilder* parent; std::map<std::string, std::set<std::string>> sigsForCode; @@ -1111,7 +1111,7 @@ public: AsmConstWalker(S2WasmBuilder* parent) : parent(parent) {} - void visitCallImport(CallImport* curr) override { + void visitCallImport(CallImport* curr) { if (curr->target == EMSCRIPTEN_ASM_CONST) { auto arg = curr->operands[0]->cast<Const>(); size_t segmentIndex = parent->addressSegments[arg->value.geti32()]; |