compiler: move ApplyFunctionSections to transform package

This commit is contained in:
Ayke van Laethem
2020-03-18 20:32:46 +01:00
committed by Ron Evans
parent 945ff4d160
commit b6314fa6ab
6 changed files with 51 additions and 14 deletions
+1 -1
View File
@@ -53,7 +53,7 @@ func Build(pkgName, outpath string, config *compileopts.Config, action func(stri
}
if config.GOOS() != "darwin" {
c.ApplyFunctionSections() // -ffunction-sections
transform.ApplyFunctionSections(c.Module()) // -ffunction-sections
}
// Browsers cannot handle external functions that have type i64 because it