compiler: disallow most types in //go:wasmimport

This is for compatibility with upstream Go.
See https://github.com/golang/go/issues/59149 for more context.
This commit is contained in:
Ayke van Laethem
2023-05-19 15:34:05 +02:00
committed by Ron Evans
parent 41e787d504
commit b08ff17f6b
4 changed files with 101 additions and 14 deletions
-6
View File
@@ -62,12 +62,6 @@ entry:
declare void @main.declaredImport() #7
; Function Attrs: nounwind
define hidden void @main.definedImport(ptr %context) unnamed_addr #2 {
entry:
ret void
}
declare void @main.undefinedFunctionNotInSection(ptr) #1
attributes #0 = { allockind("alloc,zeroed") allocsize(0) "alloc-family"="runtime.alloc" "target-features"="+bulk-memory,+nontrapping-fptoint,+sign-ext" }