fix export math functions issue
Этот коммит содержится в:
родитель
2b453db4da
коммит
04040453b4
2 изменённых файлов: 4 добавлений и 1 удалений
|
@ -75,6 +75,9 @@ var stdlibAliases = map[string]string{
|
||||||
// createAlias implements the function (in the builder) as a call to the alias
|
// createAlias implements the function (in the builder) as a call to the alias
|
||||||
// function.
|
// function.
|
||||||
func (b *builder) createAlias(alias llvm.Value) {
|
func (b *builder) createAlias(alias llvm.Value) {
|
||||||
|
b.llvmFn.SetVisibility(llvm.HiddenVisibility)
|
||||||
|
b.llvmFn.SetUnnamedAddr(true)
|
||||||
|
|
||||||
if b.Debug {
|
if b.Debug {
|
||||||
if b.fn.Syntax() != nil {
|
if b.fn.Syntax() != nil {
|
||||||
// Create debug info file if present.
|
// Create debug info file if present.
|
||||||
|
|
|
@ -23,7 +23,7 @@ import (
|
||||||
// Version of the compiler pacakge. Must be incremented each time the compiler
|
// Version of the compiler pacakge. Must be incremented each time the compiler
|
||||||
// package changes in a way that affects the generated LLVM module.
|
// package changes in a way that affects the generated LLVM module.
|
||||||
// This version is independent of the TinyGo version number.
|
// This version is independent of the TinyGo version number.
|
||||||
const Version = 19 // last change: fix channel ops with zero values
|
const Version = 20 // last change: fix export math functions issue
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
llvm.InitializeAllTargets()
|
llvm.InitializeAllTargets()
|
||||||
|
|
Загрузка…
Создание таблицы
Сослаться в новой задаче