diff options
author | Michael Bebenita <mbebenita@gmail.com> | 2016-01-13 20:13:04 -0800 |
---|---|---|
committer | Michael Bebenita <mbebenita@gmail.com> | 2016-01-13 20:13:04 -0800 |
commit | e165020f87f807179d27203195843c88fb8afe55 (patch) | |
tree | 6b8f19534b32e8a8de32e6d380f5a537a6965368 /src/s2wasm.h | |
parent | 7e3bdd00f9b390c36461291fa5b884ace55e82d6 (diff) | |
download | binaryen-e165020f87f807179d27203195843c88fb8afe55.tar.gz binaryen-e165020f87f807179d27203195843c88fb8afe55.tar.bz2 binaryen-e165020f87f807179d27203195843c88fb8afe55.zip |
Use LLVM style static polymorphism for WasmVisitors.
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 cc38dd276..e22e76289 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, void> { 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()]; |