================
@@ -1520,6 +1521,19 @@ void TypePrinter::printPipeBefore(const PipeType *T, 
raw_ostream &OS) {
 
 void TypePrinter::printPipeAfter(const PipeType *T, raw_ostream &OS) {}
 
+void TypePrinter::printWebAssemblyTableBefore(const WebAssemblyTableType *T,
+                                              raw_ostream &OS) {
+  IncludeStrongLifetimeRAII Strong(Policy);
+  printBefore(T->getElementType(), OS);
+}
+
+void TypePrinter::printWebAssemblyTableAfter(const WebAssemblyTableType *T,
+                                             raw_ostream &OS) {
+  // Print like the zero-length array a table is declared as.
+  OS << "[0]";
----------------
QuantumSegfault wrote:

Maybe be more explicit? Make it obvious that it's a Wasm table, rather than 
using `[0]` (`table` could probably do; e.g.. `invalid argument '__externref_t 
table'`)

https://github.com/llvm/llvm-project/pull/205817
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to