diff options
author | Alon Zakai <azakai@google.com> | 2020-02-18 19:22:39 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-18 19:22:39 -0800 |
commit | 08cc4d6711702a3f69159a0a4aa6e8ecedb98b5c (patch) | |
tree | 8cd28afd9739f85dc799616cf6bf3690cd009bef /test/passes/class_with_dwarf_noprint.passes | |
parent | 8307ac45a831273ba86707a8267f908ee1c7c747 (diff) | |
download | binaryen-08cc4d6711702a3f69159a0a4aa6e8ecedb98b5c.tar.gz binaryen-08cc4d6711702a3f69159a0a4aa6e8ecedb98b5c.tar.bz2 binaryen-08cc4d6711702a3f69159a0a4aa6e8ecedb98b5c.zip |
DWARF: Fix debug_range handling of invalid entries (#2662)
If an invalid entry appears - either it began as such, or became
invalid after optimization - we should not emit (0, 0) which is
an end marker. Instead, emit an invalid entry marker, something
with (0, x) for x != 0.
As a bonus, if a test/passes case has "noprint" in the name,
don't print the wasm, which we do by default. In the testcase
here for example we just care about the dwarf, and the
printed module would be quite large.
Thank you to @paolosevMSFT for identifying and suggesting
the fix.
Diffstat (limited to 'test/passes/class_with_dwarf_noprint.passes')
-rw-r--r-- | test/passes/class_with_dwarf_noprint.passes | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/passes/class_with_dwarf_noprint.passes b/test/passes/class_with_dwarf_noprint.passes new file mode 100644 index 000000000..8b1cab885 --- /dev/null +++ b/test/passes/class_with_dwarf_noprint.passes @@ -0,0 +1 @@ +roundtrip_dwarfdump_g |