summaryrefslogtreecommitdiff
path: root/src/wasm2js.h
diff options
context:
space:
mode:
authorHeejin Ahn <aheejin@gmail.com>2019-12-02 16:34:03 -0800
committerGitHub <noreply@github.com>2019-12-02 16:34:03 -0800
commit9d4acee666dfa46e81838d385a663b4c4730c852 (patch)
treeeaab2d8a8244e9259fa6af8545bc792be6f55c2c /src/wasm2js.h
parent86492f7b3d48c9ec5f27ca7d3abd90ec02972a40 (diff)
downloadbinaryen-9d4acee666dfa46e81838d385a663b4c4730c852.tar.gz
binaryen-9d4acee666dfa46e81838d385a663b4c4730c852.tar.bz2
binaryen-9d4acee666dfa46e81838d385a663b4c4730c852.zip
Refactor removing module elements (#2489)
This creates utility functions for removing module elements: removing one element by name, and removing multiple elements using a predicate function. And makes other parts of code use it. I think this is a light-handed approach than calling `Module::updateMaps` after removing only a part of module elements. This also fixes a bug in the inlining pass: it didn't call `Module::updateMaps` after removing functions. After this patch callers don't need to additionally call it anyway.
Diffstat (limited to 'src/wasm2js.h')
0 files changed, 0 insertions, 0 deletions