diff options
author | Alon Zakai <alonzakai@gmail.com> | 2018-04-05 14:49:25 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-05 14:49:25 -0700 |
commit | 5b5789495a97602869f18d552b2a9e1814edefae (patch) | |
tree | f70e304fc85dca03ebd6d2311007476700e1ffd0 /src/wasm-binary.h | |
parent | 82151243bbd4c018191721dce5381c8e449f3c77 (diff) | |
download | binaryen-5b5789495a97602869f18d552b2a9e1814edefae.tar.gz binaryen-5b5789495a97602869f18d552b2a9e1814edefae.tar.bz2 binaryen-5b5789495a97602869f18d552b2a9e1814edefae.zip |
when creating blocks in binary format parsing, we know if a block has a break to it - use that to avoid rescanning blocks for unreachability purposes (#1495)
Diffstat (limited to 'src/wasm-binary.h')
-rw-r--r-- | src/wasm-binary.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/wasm-binary.h b/src/wasm-binary.h index e03fd29ea..b8eb86d31 100644 --- a/src/wasm-binary.h +++ b/src/wasm-binary.h @@ -890,6 +890,7 @@ public: BreakTarget(Name name, int arity) : name(name), arity(arity) {} }; std::vector<BreakTarget> breakStack; + // the names that breaks target. this lets us know if a block has breaks to it or not. std::unordered_set<Name> breakTargetNames; std::vector<Expression*> expressionStack; |