summaryrefslogtreecommitdiff
path: root/src/pass.h
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2017-02-23 12:59:42 -0800
committerGitHub <noreply@github.com>2017-02-23 12:59:42 -0800
commitdb6f2bf0fa8cd1913bd498ca17641e2bda44a263 (patch)
tree24f725c2bfedd82fbd07d31204a9b5cafe9091bc /src/pass.h
parent7c183a6ec06fa32098c9eb61993f857d821e0afe (diff)
downloadbinaryen-db6f2bf0fa8cd1913bd498ca17641e2bda44a263.tar.gz
binaryen-db6f2bf0fa8cd1913bd498ca17641e2bda44a263.tar.bz2
binaryen-db6f2bf0fa8cd1913bd498ca17641e2bda44a263.zip
fix BINARYEN_PASS_DEBUG option (#908)
* fix BINARYEN_PASS_DEBUG option * Add isNested property to passRunner
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 1fcd88e0c..faf674c49 100644
--- a/src/pass.h
+++ b/src/pass.h
@@ -123,6 +123,16 @@ struct PassRunner {
~PassRunner();
+ // When running a pass runner within another pass runner, this
+ // flag should be set. This influences how pass debugging works,
+ // and may influence other things in the future too.
+ void setIsNested(bool nested) {
+ isNested = nested;
+ }
+
+protected:
+ bool isNested = false;
+
private:
void doAdd(Pass* pass);