diff options
author | Sam Clegg <sbc@chromium.org> | 2021-12-10 08:47:14 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-10 16:47:14 +0000 |
commit | 1d645885f93a7f2240176b0fd994f2408b963a7b (patch) | |
tree | 1d5850960d5c02067f3b72fd75c2706f3be13a40 /src/binary-reader-objdump.cc | |
parent | 9aba936bfab0fe9e639da6ea3b5fe3d8a3a0f1c0 (diff) | |
download | wabt-1d645885f93a7f2240176b0fd994f2408b963a7b.tar.gz wabt-1d645885f93a7f2240176b0fd994f2408b963a7b.tar.bz2 wabt-1d645885f93a7f2240176b0fd994f2408b963a7b.zip |
Share validation code between constant expressions and function bodies. NFC (#1783)
Previously we has special cases for initializer expressions (constant
expressions). This change paves the way for adding support for
extended constant expressions that support a wider range of
instructions.
This change removes twice as many lines as it adds which shows that
this simplification is probably worthwhile even without the pending
extensions.
Diffstat (limited to 'src/binary-reader-objdump.cc')
0 files changed, 0 insertions, 0 deletions