summaryrefslogtreecommitdiff
path: root/src/pass.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/pass.h')
-rw-r--r--src/pass.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/pass.h b/src/pass.h
index 236878a1a..cc8261731 100644
--- a/src/pass.h
+++ b/src/pass.h
@@ -130,7 +130,7 @@ struct PassRunner {
void run();
// Run the passes on a specific function
- void runFunction(Function* func);
+ void runOnFunction(Function* func);
// Get the last pass that was already executed of a certain type.
template<class P>
@@ -182,7 +182,7 @@ public:
// Implement this with code to run the pass on a single function, for
// a function-parallel pass
- virtual void runFunction(PassRunner* runner, Module* module, Function* function) {
+ virtual void runOnFunction(PassRunner* runner, Module* module, Function* function) {
WASM_UNREACHABLE();
}
@@ -231,7 +231,7 @@ public:
WalkerType::walkModule(module);
}
- void runFunction(PassRunner* runner, Module* module, Function* func) override {
+ void runOnFunction(PassRunner* runner, Module* module, Function* func) override {
setPassRunner(runner);
WalkerType::setModule(module);
WalkerType::walkFunction(func);