diff options
author | Heejin Ahn <aheejin@gmail.com> | 2021-10-14 12:53:19 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-14 12:53:19 -0700 |
commit | 57e616595c158437b1739dbedb07c86c35d37b26 (patch) | |
tree | 52b9f400674534f730c64c70a8c25215ea5cb077 /src/parsing.h | |
parent | 805534eee318012ce0c26d323335e5a9cb132267 (diff) | |
download | binaryen-57e616595c158437b1739dbedb07c86c35d37b26.tar.gz binaryen-57e616595c158437b1739dbedb07c86c35d37b26.tar.bz2 binaryen-57e616595c158437b1739dbedb07c86c35d37b26.zip |
[wasm-metadce] Don't add null names to roots (#4246)
Not sure why the current code tries to add the name even when it is
null, but it causes `dump()` to behave strangely and pollute stdout when
it tries to print `root.str`.
Also this changes code printing `Name.str` to printing just `Name`; when
`Name.str` is null, it prints `(null Name)` instead of polluting stdout,
and it is the recommended way of printing `Name` anyway.
Diffstat (limited to 'src/parsing.h')
0 files changed, 0 insertions, 0 deletions