summaryrefslogtreecommitdiff
path: root/scripts/test/lld.py
diff options
context:
space:
mode:
authorAlon Zakai <azakai@google.com>2019-11-19 17:05:22 -0800
committerGitHub <noreply@github.com>2019-11-19 17:05:22 -0800
commitcfa647c9fb0474687014de8d3f0b6c9f0d56a88b (patch)
tree4832a46cf6426300f6afc6f8a85270bfeb80c0b2 /scripts/test/lld.py
parent00bbde099c0d968ce4ab95eba56d767d534e4094 (diff)
downloadbinaryen-cfa647c9fb0474687014de8d3f0b6c9f0d56a88b.tar.gz
binaryen-cfa647c9fb0474687014de8d3f0b6c9f0d56a88b.tar.bz2
binaryen-cfa647c9fb0474687014de8d3f0b6c9f0d56a88b.zip
Add a --strip-dwarf pass (#2454)
This pass strips DWARF debug sections, but not other debug sections. This is useful when emitting source maps, as we do need the SourceMapURL section, but the DWARF sections are not longer necessary (and we've seen a testcase where they are massively large, so big the wasm can't even be loaded in a browser...). Also contains a trivial one-line fix in --extract-function which was necessary to create the testcase here: that pass extracts a function from a wasm file (like llvm-extract) but it didn't check if an export already existed for the function.
Diffstat (limited to 'scripts/test/lld.py')
0 files changed, 0 insertions, 0 deletions