diff options
author | Alon Zakai <azakai@google.com> | 2024-05-01 08:26:00 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-01 08:26:00 -0700 |
commit | 7d9e4a87ce4949dc552790329cfaf4dfec8b36a8 (patch) | |
tree | f0abfb1d48f3b498dfac70bfa92f704446a84c9b /src/passes/DebugLocationPropagation.cpp | |
parent | 049ff7a828f3e11b2877034dd452481cd7c04f96 (diff) | |
download | binaryen-7d9e4a87ce4949dc552790329cfaf4dfec8b36a8.tar.gz binaryen-7d9e4a87ce4949dc552790329cfaf4dfec8b36a8.tar.bz2 binaryen-7d9e4a87ce4949dc552790329cfaf4dfec8b36a8.zip |
[StackIR] Support source maps and DWARF with StackIR (#6564)
Helping #6509, this fixes debugging support for StackIR, which makes it more
possible to use StackIR in more places.
The fix is basically just to pass around some more state, and then to call the
parent with "please write debug info" at the correct times, mirroring the
similar calls in BinaryenIRWriter.
The relevant Emscripten tests pass, and the source map test modified
here produces identical output in StackIR and non-StackIR modes (the
test is also simplified to remove --new-wat-parser which is no longer
needed, after which the test can clearly show that StackIR has the same
output as BinaryenIR).
Diffstat (limited to 'src/passes/DebugLocationPropagation.cpp')
0 files changed, 0 insertions, 0 deletions