diff options
Diffstat (limited to 'src/wasm-type.h')
-rw-r--r-- | src/wasm-type.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/wasm-type.h b/src/wasm-type.h index 77f7120bf..39ec1640e 100644 --- a/src/wasm-type.h +++ b/src/wasm-type.h @@ -304,6 +304,7 @@ struct Field { mutable_ == other.mutable_; } bool operator!=(const Field& other) const { return !(*this == other); } + bool operator<(const Field& other) const; std::string toString() const; }; @@ -316,6 +317,7 @@ struct Struct { Struct(FieldList&& fields) : fields(std::move(fields)) {} bool operator==(const Struct& other) const { return fields == other.fields; } bool operator!=(const Struct& other) const { return !(*this == other); } + bool operator<(const Struct& other) const { return fields < other.fields; } std::string toString() const; }; @@ -326,6 +328,7 @@ struct Array { Array(Field&& element) : element(std::move(element)) {} bool operator==(const Array& other) const { return element == other.element; } bool operator!=(const Array& other) const { return !(*this == other); } + bool operator<(const Array& other) const { return element < other.element; } std::string toString() const; }; @@ -378,6 +381,7 @@ struct HeapType { bool operator==(const HeapType& other) const; bool operator!=(const HeapType& other) const { return !(*this == other); } + bool operator<(const HeapType& other) const; HeapType& operator=(const HeapType& other); std::string toString() const; }; |