diff options
author | Alon Zakai <azakai@google.com> | 2023-10-17 08:58:48 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-17 08:58:48 -0700 |
commit | ede148eaa505d3681abd67b0b4d7de1b82ec05ff (patch) | |
tree | 03efacbe949fe82ae0cd91e5b37bc866de950ed1 /src/wasm-type.h | |
parent | 2d1e1501f5da1436f61c8ff5440aca33e25a29e9 (diff) | |
download | binaryen-ede148eaa505d3681abd67b0b4d7de1b82ec05ff.tar.gz binaryen-ede148eaa505d3681abd67b0b4d7de1b82ec05ff.tar.bz2 binaryen-ede148eaa505d3681abd67b0b4d7de1b82ec05ff.zip |
[NFC] Rename getSuperType to getDeclaredSuperType (#6015)
A later PR will add getSuperType which will mean "get the general super type -
either declared, or not".
Diffstat (limited to 'src/wasm-type.h')
-rw-r--r-- | src/wasm-type.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/wasm-type.h b/src/wasm-type.h index f5cb0bbb0..bc6b25b34 100644 --- a/src/wasm-type.h +++ b/src/wasm-type.h @@ -368,9 +368,9 @@ public: const Struct& getStruct() const; Array getArray() const; - // If there is a nontrivial (i.e. non-basic) nominal supertype, return it, - // else an empty optional. - std::optional<HeapType> getSuperType() const; + // If there is a nontrivial (i.e. non-basic, one that was declared by the + // module) nominal supertype, return it, else an empty optional. + std::optional<HeapType> getDeclaredSuperType() const; // Return the depth of this heap type in the nominal type hierarchy, i.e. the // number of supertypes in its supertype chain. |