mirror of
https://github.com/golang/go
synced 2024-09-29 22:24:33 -06: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".
Change-Id: I83cfdf1916e82ab1455db8032153d9cdae85250d
GitHub-Last-Rev: 87b077653f
GitHub-Pull-Request: golang/go#56428
Reviewed-on: https://go-review.googlesource.com/c/go/+/445516
Auto-Submit: Keith Randall <khr@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Keith Randall <khr@golang.org>
Run-TryBot: Keith Randall <khr@golang.org>
Reviewed-by: Heschi Kreinick <heschi@google.com>
Reviewed-by: Than McIntosh <thanm@google.com>
This commit is contained in:
parent
29674d87e6
commit
f9ee56145b
@ -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