diff options
author | Alon Zakai <azakai@google.com> | 2021-01-27 19:40:08 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-27 11:40:08 -0800 |
commit | 5331e9d18b9359aa0e9d6e0df455883f62e46ea0 (patch) | |
tree | 7114cb1190a1a2c6c886b267092d613d74ad50b9 /test/passes/fuzz_metrics_noprint.bin.txt | |
parent | 2bdc4841b680ee44e132bbb07f5167eaa7226f99 (diff) | |
download | binaryen-5331e9d18b9359aa0e9d6e0df455883f62e46ea0.tar.gz binaryen-5331e9d18b9359aa0e9d6e0df455883f62e46ea0.tar.bz2 binaryen-5331e9d18b9359aa0e9d6e0df455883f62e46ea0.zip |
Simplfy getExpressionName (#3522)
This used to return a simple name like "if" for an If, but it is redundant with
our proper printing logic. This PR turns it into a trivial helper that just prints
out the name of the class, so it now prints "If" with a capital. That is useful
for some logging, like in Metrics I think it is clearer than it was earlier (since
we are actually counting the classes, and our old emitting of text-format-like
names are just confusing, as we emitted "binary" there which is not valid).
Also replace some usages of that method with proper printing.
Diffstat (limited to 'test/passes/fuzz_metrics_noprint.bin.txt')
-rw-r--r-- | test/passes/fuzz_metrics_noprint.bin.txt | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/test/passes/fuzz_metrics_noprint.bin.txt b/test/passes/fuzz_metrics_noprint.bin.txt index 9e9b6f4f8..13861d353 100644 --- a/test/passes/fuzz_metrics_noprint.bin.txt +++ b/test/passes/fuzz_metrics_noprint.bin.txt @@ -8,23 +8,23 @@ total [table-data] : 18 [total] : 4870 [vars] : 236 - binary : 368 - block : 699 - break : 191 - call : 300 - call_indirect : 39 - const : 847 - drop : 91 - global.get : 403 - global.set : 171 - if : 260 - load : 85 - local.get : 374 - local.set : 251 - loop : 111 - nop : 86 - return : 187 - select : 30 - store : 36 - unary : 340 - unreachable : 1 + Binary : 368 + Block : 699 + Break : 191 + Call : 300 + CallIndirect : 39 + Const : 847 + Drop : 91 + GlobalGet : 403 + GlobalSet : 171 + If : 260 + Load : 85 + LocalGet : 374 + LocalSet : 251 + Loop : 111 + Nop : 86 + Return : 187 + Select : 30 + Store : 36 + Unary : 340 + Unreachable : 1 |