]> Cypherpunks.ru repositories - gostls13.git/blobdiff - src/cmd/compile/internal/ssagen/abi.go
internal/buildcfg: move build configuration out of cmd/internal/objabi
[gostls13.git] / src / cmd / compile / internal / ssagen / abi.go
index 8103b08ce51a7b1d5ef85b4f323a0296a898557e..7d563623020a0b9bdc1df86ae5b83ec669078ca8 100644 (file)
@@ -6,6 +6,7 @@ package ssagen
 
 import (
        "fmt"
+       "internal/buildcfg"
        "io/ioutil"
        "log"
        "os"
@@ -213,7 +214,7 @@ func (s *SymABIs) GenABIWrappers() {
                        base.Fatalf("cgo exported function %s cannot have ABI wrappers", fn)
                }
 
-               if !objabi.Experiment.RegabiWrappers {
+               if !buildcfg.Experiment.RegabiWrappers {
                        // We'll generate ABI aliases instead of
                        // wrappers once we have LSyms in InitLSym.
                        continue
@@ -241,7 +242,7 @@ func InitLSym(f *ir.Func, hasBody bool) {
                if f.Pragma&ir.Systemstack != 0 {
                        f.LSym.Set(obj.AttrCFunc, true)
                }
-               if f.ABI == obj.ABIInternal || !objabi.Experiment.RegabiWrappers {
+               if f.ABI == obj.ABIInternal || !buildcfg.Experiment.RegabiWrappers {
                        // Function values can only point to
                        // ABIInternal entry points. This will create
                        // the funcsym for either the defining
@@ -253,7 +254,7 @@ func InitLSym(f *ir.Func, hasBody bool) {
                        // when we see that.
                        staticdata.NeedFuncSym(f)
                }
-               if !objabi.Experiment.RegabiWrappers {
+               if !buildcfg.Experiment.RegabiWrappers {
                        // Create ABI aliases instead of wrappers.
                        forEachWrapperABI(f, makeABIAlias)
                }