summaryrefslogtreecommitdiff
path: root/test/passes/strip-dwarf.wasm
Commit message (Collapse)AuthorAgeFilesLines
* Add a --strip-dwarf pass (#2454)Alon Zakai2019-11-191-0/+0
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.