diff options
author | Alon Zakai <alonzakai@gmail.com> | 2018-08-07 20:01:07 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-07 20:01:07 -0700 |
commit | 9f8fa5a14d3b48c650c2574529fd95c329cb5358 (patch) | |
tree | ad447fed7ee7cc588a4372aa64d121993f1f2ada /test/dynamicLibrary.asm.js | |
parent | 353e2c4fcb7662b8c73f5673fd0fc21bcb7287c6 (diff) | |
download | binaryen-9f8fa5a14d3b48c650c2574529fd95c329cb5358.tar.gz binaryen-9f8fa5a14d3b48c650c2574529fd95c329cb5358.tar.bz2 binaryen-9f8fa5a14d3b48c650c2574529fd95c329cb5358.zip |
wasm-ctor-eval improvements (#1631)
* When we eval a ctor, don't just nop the function body that no longer needs to be executed, also remove the export (as we report the ctor being evalled, and the outside will no longer call it).
* Run the pass to remove unused global things. This can usually remove evalled ctors (unless something else happens to call them, which can't happen normally as LLVM wouldn't use a ctor in another place, but e.g. duplicate function merging might merge a ctor with another function).
Diffstat (limited to 'test/dynamicLibrary.asm.js')
0 files changed, 0 insertions, 0 deletions