diff options
author | Alon Zakai <alonzakai@gmail.com> | 2015-12-18 14:30:46 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2015-12-18 15:06:01 -0800 |
commit | 884b9f8a688766e08907431cd6759bfaa89399dc (patch) | |
tree | fb75ab06ac3125ce7e8f2d4e0206bc321046a92b /src/wasm-s-parser.h | |
parent | 2651a7c315cb5bf7343fe889585659074d5056c8 (diff) | |
download | binaryen-884b9f8a688766e08907431cd6759bfaa89399dc.tar.gz binaryen-884b9f8a688766e08907431cd6759bfaa89399dc.tar.bz2 binaryen-884b9f8a688766e08907431cd6759bfaa89399dc.zip |
remove Label, which was removed from the spec
Diffstat (limited to 'src/wasm-s-parser.h')
-rw-r--r-- | src/wasm-s-parser.h | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/src/wasm-s-parser.h b/src/wasm-s-parser.h index 7f1d9bf6c..deeaba155 100644 --- a/src/wasm-s-parser.h +++ b/src/wasm-s-parser.h @@ -555,7 +555,6 @@ public: abort_on(str); } case 'l': { - if (str[1] == 'a') return makeLabel(s); if (str[1] == 'o') return makeLoop(s); abort_on(str); } @@ -770,21 +769,6 @@ private: return ret; } - Expression* makeLabel(Element& s) { - auto ret = allocator.alloc<Label>(); - size_t i = 1; - if (s[i]->isStr()) { - ret->name = s[i]->str(); - i++; - } else { - ret->name = getPrefixedName("label"); - } - labelStack.push_back(ret->name); - ret->body = parseExpression(s[i]); - labelStack.pop_back(); - return ret; - } - Expression* makeMaybeBlock(Element& s, size_t i, size_t stopAt=-1) { if (s.size() == i+1) return parseExpression(s[i]); auto ret = allocator.alloc<Block>(); |