fix export math functions issue

This commit is contained in:
learnforpractice
2021-10-03 09:27:33 +08:00
committed by Ayke
parent 2b453db4da
commit 04040453b4
2 changed files with 4 additions and 1 deletions
+3
View File
@@ -75,6 +75,9 @@ var stdlibAliases = map[string]string{
// createAlias implements the function (in the builder) as a call to the alias
// function.
func (b *builder) createAlias(alias llvm.Value) {
b.llvmFn.SetVisibility(llvm.HiddenVisibility)
b.llvmFn.SetUnnamedAddr(true)
if b.Debug {
if b.fn.Syntax() != nil {
// Create debug info file if present.