summaryrefslogtreecommitdiff
path: root/src/pass.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/pass.h')
-rw-r--r--src/pass.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/pass.h b/src/pass.h
index 1c37bea40..20384241c 100644
--- a/src/pass.h
+++ b/src/pass.h
@@ -76,6 +76,10 @@ struct PassRunner {
PassRunner(Module* wasm) : wasm(wasm), allocator(&wasm->allocator) {}
PassRunner(Module* wasm, PassOptions options) : wasm(wasm), allocator(&wasm->allocator), options(options) {}
+ // no copying, we control |passes|
+ PassRunner(const PassRunner&) = delete;
+ PassRunner& operator=(const PassRunner&) = delete;
+
void setDebug(bool debug_) {
options.debug = debug_;
options.validateGlobally = debug_; // validate everything by default if debugging