1
0
mirror of https://github.com/golang/go synced 2024-11-23 03:30:02 -07:00

cmd/compile: print readable function name in error message.

i.e.
from "function %!s(*Node=0xc0003b48c0) cannot have ABI wrappers",
to "function xxFunctionName cannot have ABI wrappers".
This commit is contained in:
doujiang24 2022-10-26 13:08:00 +08:00
parent d2901205c1
commit 87b077653f

View File

@ -204,7 +204,7 @@ func (s *SymABIs) GenABIWrappers() {
// Double check that cgo-exported symbols don't get
// any wrappers.
if len(cgoExport) > 0 && fn.ABIRefs&^obj.ABISetOf(fn.ABI) != 0 {
base.Fatalf("cgo exported function %s cannot have ABI wrappers", fn)
base.Fatalf("cgo exported function %v cannot have ABI wrappers", fn)
}
if !buildcfg.Experiment.RegabiWrappers {