summaryrefslogtreecommitdiff
path: root/src/pass.h
diff options
context:
space:
mode:
authorSam Clegg <sbc@chromium.org>2020-07-27 22:23:17 -0700
committerGitHub <noreply@github.com>2020-07-27 22:23:17 -0700
commit32ab8bac04af52121c6985a9a019c0fdec957f03 (patch)
tree07f9471a68be9cf5c2176e92c69e3a94bbf9df9f /src/pass.h
parent85e45a4371ef9e6b143e9675d5f52136ef881c12 (diff)
downloadbinaryen-32ab8bac04af52121c6985a9a019c0fdec957f03.tar.gz
binaryen-32ab8bac04af52121c6985a9a019c0fdec957f03.tar.bz2
binaryen-32ab8bac04af52121c6985a9a019c0fdec957f03.zip
Move stack-check into its own pass (#2994)
This new pass takes an optional stack-check-handler argument which is the name of the function to call on stack overflow. If no argument is passed then it just traps.
Diffstat (limited to 'src/pass.h')
-rw-r--r--src/pass.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/pass.h b/src/pass.h
index 760feb7c0..8b8e73fa0 100644
--- a/src/pass.h
+++ b/src/pass.h
@@ -153,7 +153,6 @@ struct PassRunner {
PassRunner(const PassRunner&) = delete;
PassRunner& operator=(const PassRunner&) = delete;
- void setOptions(PassOptions newOptions) { options = newOptions; }
void setDebug(bool debug) {
options.debug = debug;
// validate everything by default if debugging