diff options
author | Alon Zakai <alonzakai@gmail.com> | 2017-02-23 12:59:42 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-02-23 12:59:42 -0800 |
commit | db6f2bf0fa8cd1913bd498ca17641e2bda44a263 (patch) | |
tree | 24f725c2bfedd82fbd07d31204a9b5cafe9091bc /src/pass.h | |
parent | 7c183a6ec06fa32098c9eb61993f857d821e0afe (diff) | |
download | binaryen-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.h | 10 |
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); |