mirror of
https://github.com/golang/go
synced 2024-09-29 12:14:28 -06:00
cmd/compile: update comments with ABI aliases/wrappers
ABI aliases are gone. Change-Id: I0f5676d8730cac14b7495dd6c0c1e08ca85a1c77 Reviewed-on: https://go-review.googlesource.com/c/go/+/351531 Trust: Cherry Mui <cherryyz@google.com> Reviewed-by: Than McIntosh <thanm@google.com>
This commit is contained in:
parent
1e57748892
commit
5b75a9b2c3
@ -218,8 +218,6 @@ func (s *SymABIs) GenABIWrappers() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if !buildcfg.Experiment.RegabiWrappers {
|
if !buildcfg.Experiment.RegabiWrappers {
|
||||||
// We'll generate ABI aliases instead of
|
|
||||||
// wrappers once we have LSyms in InitLSym.
|
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -251,10 +249,9 @@ func InitLSym(f *ir.Func, hasBody bool) {
|
|||||||
// the funcsym for either the defining
|
// the funcsym for either the defining
|
||||||
// function or its wrapper as appropriate.
|
// function or its wrapper as appropriate.
|
||||||
//
|
//
|
||||||
// If we're using ABI aliases instead of
|
// If we're not using ABI wrappers, we only
|
||||||
// wrappers, we only InitLSym for the defining
|
// InitLSym for the defining ABI of a function,
|
||||||
// ABI of a function, so we make the funcsym
|
// so we make the funcsym when we see that.
|
||||||
// when we see that.
|
|
||||||
staticdata.NeedFuncSym(f)
|
staticdata.NeedFuncSym(f)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -279,7 +279,7 @@ func NeedFuncSym(fn *ir.Func) {
|
|||||||
// entry points, so it doesn't make sense to create a
|
// entry points, so it doesn't make sense to create a
|
||||||
// funcsym for other ABIs.
|
// funcsym for other ABIs.
|
||||||
//
|
//
|
||||||
// (If we're using ABI aliases, it doesn't matter.)
|
// (If we're not using ABI wrappers, it doesn't matter.)
|
||||||
base.Fatalf("expected ABIInternal: %v has %v", fn.Nname, fn.ABI)
|
base.Fatalf("expected ABIInternal: %v has %v", fn.Nname, fn.ABI)
|
||||||
}
|
}
|
||||||
if ir.IsBlank(fn.Nname) {
|
if ir.IsBlank(fn.Nname) {
|
||||||
|
Loading…
Reference in New Issue
Block a user