diff options
-rw-r--r-- | src/passes/Print.cpp | 2 | ||||
-rw-r--r-- | test/lit/passes/signature-pruning.wast | 2 | ||||
-rw-r--r-- | test/lit/passes/signature-refining.wast | 2 | ||||
-rw-r--r-- | test/lit/wat-kitchen-sink.wast | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/src/passes/Print.cpp b/src/passes/Print.cpp index 7ceb4393a..87e30c882 100644 --- a/src/passes/Print.cpp +++ b/src/passes/Print.cpp @@ -2846,7 +2846,7 @@ void PrintSExpression::visitImportedFunction(Function* curr) { lastPrintedLocation = {0, 0, 0}; o << '('; emitImportHeader(curr); - handleSignature(curr->getSig(), curr->name); + handleSignature(curr->type, curr->name); o << ')'; o << maybeNewLine; } diff --git a/test/lit/passes/signature-pruning.wast b/test/lit/passes/signature-pruning.wast index 98ed94d4a..3e9d0742f 100644 --- a/test/lit/passes/signature-pruning.wast +++ b/test/lit/passes/signature-pruning.wast @@ -398,7 +398,7 @@ ;; As above, but now an import also uses this signature, which prevents us ;; from changing anything. - ;; CHECK: (import "out" "func" (func $import (type $func.0) (param i32))) + ;; CHECK: (import "out" "func" (func $import (type $sig) (param i32))) (import "out" "func" (func $import (type $sig) (param i32))) (memory 1 1) diff --git a/test/lit/passes/signature-refining.wast b/test/lit/passes/signature-refining.wast index c09c837d2..2ac1aba78 100644 --- a/test/lit/passes/signature-refining.wast +++ b/test/lit/passes/signature-refining.wast @@ -918,7 +918,7 @@ ;; CHECK: (type $8 (func (param funcref) (result (ref $C)))) - ;; CHECK: (import "binaryen-intrinsics" "call.without.effects" (func $no.side.effects (type $func.0) (param funcref) (result (ref null $A)))) + ;; CHECK: (import "binaryen-intrinsics" "call.without.effects" (func $no.side.effects (type $6) (param funcref) (result (ref null $A)))) (import "binaryen-intrinsics" "call.without.effects" (func $no.side.effects (param funcref) (result (ref null $A)) diff --git a/test/lit/wat-kitchen-sink.wast b/test/lit/wat-kitchen-sink.wast index eb8d4f100..dc6ebb4c8 100644 --- a/test/lit/wat-kitchen-sink.wast +++ b/test/lit/wat-kitchen-sink.wast @@ -168,7 +168,7 @@ ;; CHECK: (import "mod" "" (global $gimport$1 (ref null $many))) - ;; CHECK: (import "mod" "f5" (func $fimport$1 (type $func.0))) + ;; CHECK: (import "mod" "f5" (func $fimport$1 (type $void))) ;; CHECK: (global $2 (mut i32) (i32.const 0)) |