[Wasm] Don't print recursion group in wat when it's empty
This commit is contained in:
committed by
Space Team
parent
590400071b
commit
8a645e9c0a
@@ -228,6 +228,8 @@ class WasmIrToText : SExpressionBuilder() {
|
|||||||
with(module) {
|
with(module) {
|
||||||
newLineList("module") {
|
newLineList("module") {
|
||||||
functionTypes.forEach { appendFunctionTypeDeclaration(it) }
|
functionTypes.forEach { appendFunctionTypeDeclaration(it) }
|
||||||
|
|
||||||
|
if(recGroupTypes.isNotEmpty()) {
|
||||||
newLineList("rec") {
|
newLineList("rec") {
|
||||||
recGroupTypes.forEach {
|
recGroupTypes.forEach {
|
||||||
when (it) {
|
when (it) {
|
||||||
@@ -240,6 +242,8 @@ class WasmIrToText : SExpressionBuilder() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
importsInOrder.forEach {
|
importsInOrder.forEach {
|
||||||
when (it) {
|
when (it) {
|
||||||
is WasmFunction.Imported -> appendImportedFunction(it)
|
is WasmFunction.Imported -> appendImportedFunction(it)
|
||||||
|
|||||||
Reference in New Issue
Block a user