diff options
author | Thomas Lively <tlively@google.com> | 2024-03-05 12:27:52 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-05 12:27:52 -0800 |
commit | 6896d05ce48b63b34b6c0904eb694618ee7ac619 (patch) | |
tree | 1c942b6c2b0d9ccf7327b177b7df964e06488960 /src/ir/module-utils.cpp | |
parent | 00ed4115fb89a0fac3231eba07f5f737cf721acd (diff) | |
download | binaryen-6896d05ce48b63b34b6c0904eb694618ee7ac619.tar.gz binaryen-6896d05ce48b63b34b6c0904eb694618ee7ac619.tar.bz2 binaryen-6896d05ce48b63b34b6c0904eb694618ee7ac619.zip |
[Parser] Propagate debug locations like the old parser (#6377)
Add a pass that propagates debug locations to unannotated child and sibling
expressions after parsing. The new parser on its own only attaches debug
locations to directly annotated instructions, but this pass, which we run
unconditionally, emulates the behavior of the previous parser for compatibility
with existing programs. It does unintuitive things to programs using the
non-nested format because it runs on nested Binaryen IR, so we may want to
rethink this at some point.
Diffstat (limited to 'src/ir/module-utils.cpp')
0 files changed, 0 insertions, 0 deletions