aboutsummaryrefslogtreecommitdiffhomepage
path: root/builder
diff options
context:
space:
mode:
authorNia Waldvogel <[email protected]>2021-12-31 14:53:19 -0500
committerNia <[email protected]>2022-01-19 14:42:02 -0500
commitc6ae1c58fcb2f2a70a6d31e7319a1e9dadfe715f (patch)
tree73f1e52e0cff4a784a1fad830d335d82bba026c9 /builder
parent0c2fefa09b4b7751d9b325e2418c8813b5929537 (diff)
downloadtinygo-c6ae1c58fcb2f2a70a6d31e7319a1e9dadfe715f.tar.gz
tinygo-c6ae1c58fcb2f2a70a6d31e7319a1e9dadfe715f.zip
compiler: remove parentHandle from calling convention
This removes the parentHandle argument from the internal calling convention. It was formerly used to implment coroutines. Now that coroutines have been removed, it is no longer necessary.
Diffstat (limited to 'builder')
-rw-r--r--builder/build.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/builder/build.go b/builder/build.go
index 20eb3f16c..42a3dd333 100644
--- a/builder/build.go
+++ b/builder/build.go
@@ -428,7 +428,6 @@ func Build(pkgName, outpath string, config *compileopts.Config, action func(Buil
llvmInitFn.SetUnnamedAddr(true)
transform.AddStandardAttributes(llvmInitFn, config)
llvmInitFn.Param(0).SetName("context")
- llvmInitFn.Param(1).SetName("parentHandle")
block := mod.Context().AddBasicBlock(llvmInitFn, "entry")
irbuilder := mod.Context().NewBuilder()
defer irbuilder.Dispose()
@@ -439,7 +438,7 @@ func Build(pkgName, outpath string, config *compileopts.Config, action func(Buil
if pkgInit.IsNil() {
panic("init not found for " + pkg.Pkg.Path())
}
- irbuilder.CreateCall(pkgInit, []llvm.Value{llvm.Undef(i8ptrType), llvm.Undef(i8ptrType)}, "")
+ irbuilder.CreateCall(pkgInit, []llvm.Value{llvm.Undef(i8ptrType)}, "")
}
irbuilder.CreateRetVoid()