mirror of
https://github.com/golang/go
synced 2024-11-23 00:10:07 -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:
parent
d2901205c1
commit
87b077653f
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user