diff options
Diffstat (limited to 'src/wasm-type.h')
-rw-r--r-- | src/wasm-type.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/wasm-type.h b/src/wasm-type.h index bc6b25b34..23ceb9143 100644 --- a/src/wasm-type.h +++ b/src/wasm-type.h @@ -372,6 +372,11 @@ public: // module) nominal supertype, return it, else an empty optional. std::optional<HeapType> getDeclaredSuperType() const; + // As |getDeclaredSuperType|, but also handles basic types, that is, if the + // super is a basic type, then we return it here. Declared types are returned + // as well, just like |getDeclaredSuperType|. + std::optional<HeapType> getSuperType() const; + // Return the depth of this heap type in the nominal type hierarchy, i.e. the // number of supertypes in its supertype chain. size_t getDepth() const; |