summaryrefslogtreecommitdiff
path: root/src/wasm-validator.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/wasm-validator.h')
-rw-r--r--src/wasm-validator.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/wasm-validator.h b/src/wasm-validator.h
index a19071959..39eaca572 100644
--- a/src/wasm-validator.h
+++ b/src/wasm-validator.h
@@ -35,7 +35,7 @@ struct WasmValidator : public PostWalker<WasmValidator, Visitor<WasmValidator>>
public:
bool validate(Module& module) {
valid = true;
- startWalk(&module);
+ walkModule(&module);
return valid;
}
@@ -280,9 +280,8 @@ public:
}
}
- void walk(Expression*& root) {
- //std::cerr << "start a function " << getFunction()->name << "\n";
- PostWalker<WasmValidator, Visitor<WasmValidator>>::walk(root);
+ void doWalkFunction(Function* func) {
+ PostWalker<WasmValidator, Visitor<WasmValidator>>::doWalkFunction(func);
shouldBeTrue(breakTypes.size() == 0, "break targets", "all break targets must be valid");
}