diff options
Diffstat (limited to 'src/wasm-s-parser.h')
-rw-r--r-- | src/wasm-s-parser.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/wasm-s-parser.h b/src/wasm-s-parser.h index 6cbef5599..76a60d7d9 100644 --- a/src/wasm-s-parser.h +++ b/src/wasm-s-parser.h @@ -160,6 +160,10 @@ private: } Type stringToType(const char* str, bool allowError = false, bool prefix = false); + HeapType stringToHeapType(cashew::IString str, bool prefix = false) { + return stringToHeapType(str.str, prefix); + } + HeapType stringToHeapType(const char* str, bool prefix = false); Type elementToType(Element& s); Type stringToLaneType(const char* str); bool isType(cashew::IString str) { |