mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-16 10:43:29 +00:00
compiler: Don't externally link runtime.init
There is no reason to make this exception.
This commit is contained in:
@@ -453,7 +453,7 @@ func (c *Compiler) parseFuncDecl(f *ssa.Function) (*Frame, error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (c *Compiler) parseFunc(frame *Frame, f *ssa.Function) error {
|
func (c *Compiler) parseFunc(frame *Frame, f *ssa.Function) error {
|
||||||
if frame.llvmFn.Name() != "main.main" && frame.llvmFn.Name() != "runtime.init" {
|
if frame.llvmFn.Name() != "main.main" {
|
||||||
// This function is only used from within Go.
|
// This function is only used from within Go.
|
||||||
frame.llvmFn.SetLinkage(llvm.PrivateLinkage)
|
frame.llvmFn.SetLinkage(llvm.PrivateLinkage)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user