diff options
author | Thomas Lively <7121787+tlively@users.noreply.github.com> | 2022-09-09 18:42:15 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-09 18:42:15 -0700 |
commit | 73b562e24e958e6d5c15aa96ddf4b2e8f31162f8 (patch) | |
tree | 7bf17a711f4d90888dd3e45b0ccd65ad9584b6ba /test/lit/help/wasm-opt.test | |
parent | 15117dc049c6e71b2ea646fb36e034b13dae6435 (diff) | |
download | binaryen-73b562e24e958e6d5c15aa96ddf4b2e8f31162f8.tar.gz binaryen-73b562e24e958e6d5c15aa96ddf4b2e8f31162f8.tar.bz2 binaryen-73b562e24e958e6d5c15aa96ddf4b2e8f31162f8.zip |
Remove typed-function-references feature (#5030)
In practice typed function references will not ship before GC and is not
independently useful, so it's not necessary to have a separate feature for it.
Roll the functionality previously enabled by --enable-typed-function-references
into --enable-gc instead.
This also avoids a problem with the ongoing implementation of the new GC bottom
heap types. That change will make all ref.null instructions in Binaryen IR refer
to one of the bottom heap types. But since those bottom types are introduced in
GC, it's not valid to emit them in binaries unless unless GC is enabled. The fix
if only reference types is enabled is to emit (ref.null func) instead
of (ref.null nofunc), but that doesn't always work if typed function references
are enabled because a function type more specific than func may be required.
Getting rid of typed function references as a separate feature makes this a
nonissue.
Diffstat (limited to 'test/lit/help/wasm-opt.test')
-rw-r--r-- | test/lit/help/wasm-opt.test | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/test/lit/help/wasm-opt.test b/test/lit/help/wasm-opt.test index 9af51001d..6bc5bf770 100644 --- a/test/lit/help/wasm-opt.test +++ b/test/lit/help/wasm-opt.test @@ -603,11 +603,6 @@ ;; CHECK-NEXT: ;; CHECK-NEXT: --disable-memory64 Disable memory64 ;; CHECK-NEXT: -;; CHECK-NEXT: --enable-typed-function-references Enable typed function references -;; CHECK-NEXT: -;; CHECK-NEXT: --disable-typed-function-references Disable typed function -;; CHECK-NEXT: references -;; CHECK-NEXT: ;; CHECK-NEXT: --enable-gc-nn-locals Enable GC non-null locals ;; CHECK-NEXT: ;; CHECK-NEXT: --disable-gc-nn-locals Disable GC non-null locals |