summaryrefslogtreecommitdiff
path: root/src/pass.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/pass.h')
-rw-r--r--src/pass.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/pass.h b/src/pass.h
index 513979954..198d5dcb5 100644
--- a/src/pass.h
+++ b/src/pass.h
@@ -131,6 +131,16 @@ struct PassRunner {
isNested = nested;
}
+ // BINARYEN_PASS_DEBUG is a convenient commandline way to log out the toplevel passes, their times,
+ // and validate between each pass.
+ // (we don't recurse pass debug into sub-passes, as it doesn't help anyhow and
+ // also is bad for e.g. printing which is a pass)
+ // this method returns whether we are in passDebug mode, and which value:
+ // 1: run pass by pass, validating in between
+ // 2: also save the last pass, so it breakage happens we can print the last one
+ // 3: also dump out byn-* files for each pass
+ static int getPassDebug();
+
protected:
bool isNested = false;