Repository navigation
Remove debug-parser option and other unused variables - #2739
Conversation
| s_log_stream = FileStream::CreateStderr(); | ||
| }); | ||
| parser.AddOption("debug-parser", "Turn on debugging the parser of wast files", | ||
| []() { s_debug_parsing = true; }); |
There was a problem hiding this comment.
Did this flag used to work in the past? Maybe we should make it work rather than removing it?
There was a problem hiding this comment.
What does it do? It is added here, replacing another flag:
bc3deb3
There was a problem hiding this comment.
parser.AddOption("debug-parser", "Turn on debugging the parser of wast files",
- []() { s_parse_options.debug_parsing = true; });
+ []() { s_debug_parsing = true; });
This was the actual change
There was a problem hiding this comment.
A flag still present here, but it seems nothing is using it.
https://github.com/WebAssembly/wabt/blob/main/include/wabt/wast-parser.h#L37
Perhaps some plans changed?
| s_log_stream = FileStream::CreateStderr(); | ||
| }); | ||
| parser.AddOption("debug-parser", "Turn on debugging the parser of wat files", | ||
| []() { s_debug_parsing = true; }); |
1742eb4 to
c3256a3
Compare
|
It looks like the debug parser setting was removed back in #591 when the parser was re-written. So I think its safe to remove these command line flags, but maybe mention that in the PR description and maybe even add to the PR title? |
The support for --debug-parser is removed from the project after the parser has been reworked. This patch removes the command line option as well.
The support for --debug-parser is removed from the project after the parser has been reworked. This patch removes the command line option as well.
Would not be bad to change the
"Use multiple times for more info"to something else.