diff options
Diffstat (limited to 'src/pass.h')
-rw-r--r-- | src/pass.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/pass.h b/src/pass.h index 7a830acb5..643d9a25a 100644 --- a/src/pass.h +++ b/src/pass.h @@ -171,6 +171,12 @@ struct PassRunner { PassRunner(const PassRunner&) = delete; PassRunner& operator=(const PassRunner&) = delete; + // But we can make it easy to create a nested runner + // TODO: Go through and use this in more places + explicit PassRunner(const PassRunner* runner) + : wasm(runner->wasm), allocator(runner->allocator), + options(runner->options), isNested(true) {} + void setDebug(bool debug) { options.debug = debug; // validate everything by default if debugging |