Commit 9438ce1
authored
Print tables for call_indirects for nonzero table index (#7843)
Rather than always printing the table like in #7839, this prints the
table only when either reference types is enabled or the table index is
not 0 (even if the features section or `--enable-reference-types` is not
provided)
This addresses the concern in #7802, while not printing table when it is
not necessary.
There is no test changes because
- At the moment wasm-dis enables all features so wasm-dis always prints
tables in `call_indirect`s. This will change in #7840.
- wasm-opt results didn't print table so far when reference-types is not
enabled, and all `call_indirect`s in those tests have table index 0.1 parent 11d3aef commit 9438ce1
1 file changed
+7
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
503 | 503 | | |
504 | 504 | | |
505 | 505 | | |
506 | | - | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
507 | 513 | | |
508 | 514 | | |
509 | 515 | | |
| |||
0 commit comments