Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/passes/Print.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
2 changes: 1 addition & 1 deletion test/lit/passes/signature-pruning.wast
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion test/lit/passes/signature-refining.wast
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down
2 changes: 1 addition & 1 deletion test/lit/wat-kitchen-sink.wast
Original file line number Diff line number Diff line change
Expand Up @@ -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))

Expand Down