summaryrefslogtreecommitdiff
path: root/src/binaryen-c.cpp
diff options
context:
space:
mode:
authorThomas Lively <tlively@google.com>2023-09-21 13:46:51 -0700
committerGitHub <noreply@github.com>2023-09-21 13:46:51 -0700
commit2c09a60ecbb0ba0276982204d8788b4343356417 (patch)
tree459f657111276a48fb9ee40520203c764c8a464d /src/binaryen-c.cpp
parentd491136eeb94b748225be50bdcc86c74cdbd154e (diff)
downloadbinaryen-2c09a60ecbb0ba0276982204d8788b4343356417.tar.gz
binaryen-2c09a60ecbb0ba0276982204d8788b4343356417.tar.bz2
binaryen-2c09a60ecbb0ba0276982204d8788b4343356417.zip
[NFC][Parser] Simplify instruction handling (#5964)
The new wat parser previously returned InstrT types when parsing individual instructions and collected InstrsT types when parsing sequences of instructions. However, instructions were always actually tracked in the internal state of the parsing context, so these types never held any interesting or necessary data. Simplify the parser by removing these types and leaning into the pattern that the parser context will keep track of parsed instructions. This allows for a much cleaner separation between the `instrs` and `foldedinstrs` parser functions.
Diffstat (limited to 'src/binaryen-c.cpp')
0 files changed, 0 insertions, 0 deletions