diff options
author | Thomas Lively <tlively@google.com> | 2023-04-14 17:54:25 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-14 17:54:25 -0700 |
commit | d0621e5820b4ce1b72907f5cdb3c68487ce20c60 (patch) | |
tree | 60832f328708f01ea6eed4cffc2da95cccc58c70 /src/tools/fuzzing/fuzzing.cpp | |
parent | 56fe22d30ddd4deac619e41824fc69079dcd7a47 (diff) | |
download | binaryen-d0621e5820b4ce1b72907f5cdb3c68487ce20c60.tar.gz binaryen-d0621e5820b4ce1b72907f5cdb3c68487ce20c60.tar.bz2 binaryen-d0621e5820b4ce1b72907f5cdb3c68487ce20c60.zip |
Remove the --hybrid and --nominal command line options (#5669)
After this change, the only type system usable from the tools will be the
standard isorecursive type system. The nominal type system is still usable via
the API, but it will be removed entirely in a follow-on PR.
Diffstat (limited to 'src/tools/fuzzing/fuzzing.cpp')
-rw-r--r-- | src/tools/fuzzing/fuzzing.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/tools/fuzzing/fuzzing.cpp b/src/tools/fuzzing/fuzzing.cpp index 6ce299822..062e66260 100644 --- a/src/tools/fuzzing/fuzzing.cpp +++ b/src/tools/fuzzing/fuzzing.cpp @@ -2260,14 +2260,12 @@ Expression* TranslateToFuzzReader::makeBasicRef(Type type) { assert(wasm.features.hasGC()); // TODO: Construct nontrivial types. For now just create a hard coded // struct. - // Use a local static to avoid creating a fresh nominal types in - // --nominal mode. + // Use a local static to avoid the expense of canonicalizing a new type + // every time. static HeapType trivialStruct = HeapType(Struct()); return builder.makeStructNew(trivialStruct, std::vector<Expression*>{}); } case HeapType::array: { - // Use a local static to avoid creating a fresh nominal types in - // --nominal mode. static HeapType trivialArray = HeapType(Array(Field(Field::PackedType::i8, Immutable))); return builder.makeArrayNewFixed(trivialArray, {}); |