Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/pass.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions src/passes/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ set(passes_SOURCES
OptimizeAddedConstants.cpp
OptimizeInstructions.cpp
PickLoadSigns.cpp
Poppify.cpp
PostAssemblyScript.cpp
PostEmscripten.cpp
Precompute.cpp
Expand Down
Loading