summaryrefslogtreecommitdiff
path: root/src/passes
diff options
context:
space:
mode:
Diffstat (limited to 'src/passes')
-rw-r--r--src/passes/Print.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/passes/Print.cpp b/src/passes/Print.cpp
index 26140c030..49cade313 100644
--- a/src/passes/Print.cpp
+++ b/src/passes/Print.cpp
@@ -2257,6 +2257,21 @@ struct PrintExpressionContents
WASM_UNREACHABLE("invalid string.measure*");
}
}
+ void visitStringEncode(StringEncode* curr) {
+ switch (curr->op) {
+ case StringEncodeUTF8:
+ printMedium(o, "string.encode_wtf8 utf8");
+ break;
+ case StringEncodeWTF8:
+ printMedium(o, "string.encode_wtf8 wtf8");
+ break;
+ case StringEncodeWTF16:
+ printMedium(o, "string.encode_wtf16");
+ break;
+ default:
+ WASM_UNREACHABLE("invalid string.encode*");
+ }
+ }
};
// Prints an expression in s-expr format, including both the