diff options
author | Daniel Wirtz <dcode@dcode.io> | 2020-05-11 20:48:51 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-11 11:48:51 -0700 |
commit | 655fd6b5cd1e3dd7441139cfca95a905004d2209 (patch) | |
tree | 58c688490493b5beb2ba3b273d13668cb4888065 /src/wasm/wasm-validator.cpp | |
parent | 3de8c98b682e1347e5c50c58eaddc4b01f3e26ab (diff) | |
download | binaryen-655fd6b5cd1e3dd7441139cfca95a905004d2209.tar.gz binaryen-655fd6b5cd1e3dd7441139cfca95a905004d2209.tar.bz2 binaryen-655fd6b5cd1e3dd7441139cfca95a905004d2209.zip |
Add C/JS APIs to copy expressions (#2840)
This API enables use cases where we want to keep the original expression, yet utilize passes like `vacuum` or `precompute` to evaluate it without implicitly modifying the original.
C-API: **BinaryenExpressionCopy**(expr, module)
JS-API: **Module#copyExpression**(expr)
Diffstat (limited to 'src/wasm/wasm-validator.cpp')
0 files changed, 0 insertions, 0 deletions