diff options
author | Thomas Lively <tlively@google.com> | 2024-02-26 17:55:18 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-26 17:55:18 -0800 |
commit | f8b07f75996b34142450435c75a811aa946a6d3b (patch) | |
tree | a6f2c9b0c602acf5e1b07acde2c3c491d0f91076 /src/passes/StringLowering.cpp | |
parent | 55c206216ea93bd84de8f68b81fd903724006b50 (diff) | |
download | binaryen-f8b07f75996b34142450435c75a811aa946a6d3b.tar.gz binaryen-f8b07f75996b34142450435c75a811aa946a6d3b.tar.bz2 binaryen-f8b07f75996b34142450435c75a811aa946a6d3b.zip |
[Parser] Parse annotations, including source map comments (#6345)
Parse annotations using the standards-track `(@annotation ...)` format as well
as the `;;@ source-map:0:1` format. Have the lexer implicitly collect
annotations while it skips whitespace and add lexer APIs to access the
annotations since the last token was parsed. Collect annotations before parsing
each instruction and pass the annotations explicitly to the parser and parser
context functions for instructions. Add an API to `IRBuilder` to set a debug
location to be attached to the next visited or created instruction and use it
from the parser.
Diffstat (limited to 'src/passes/StringLowering.cpp')
0 files changed, 0 insertions, 0 deletions