compiler: predeclare runtime.trackPointer

When a package only uses runtime.trackPointer to create interface packs, the compiler fails to find runtime.trackPointer.
This change predeclares it alongside runtime.alloc and updates the tests to use runtime.trackPointer when the test's target uses it.
This commit is contained in:
Nia Waldvogel
2022-01-14 11:06:33 -05:00
committed by Nia
parent ecf7014f7e
commit 57ff3a5ca0
16 changed files with 104 additions and 2 deletions
+2
View File
@@ -9,6 +9,8 @@ target triple = "wasm32-unknown-wasi"
declare noalias nonnull i8* @runtime.alloc(i32, i8*, i8*, i8*)
declare void @runtime.trackPointer(i8* nocapture readonly, i8*, i8*)
; Function Attrs: nounwind
define hidden void @main.init(i8* %context, i8* %parentHandle) unnamed_addr #0 {
entry: