[dev.regabi] cmd/compile: remove initname function

Passes toolstash -cmp.

Change-Id: I84b99d6e636c7b867780389ad11dafc70d3628cd
Reviewed-on: https://go-review.googlesource.com/c/go/+/281313
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
Reviewed-by: Cuong Manh Le <cuong.manhle.vn@gmail.com>
Run-TryBot: Matthew Dempsky <mdempsky@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
This commit is contained in:
Baokun Lee 2021-01-05 15:04:34 +08:00 committed by Matthew Dempsky
parent 77365c5ed7
commit 4a9d9adea4

View file

@ -266,7 +266,7 @@ func autoexport(n *ir.Name, ctxt ir.Class) {
return
}
if types.IsExported(n.Sym().Name) || initname(n.Sym().Name) {
if types.IsExported(n.Sym().Name) || n.Sym().Name == "init" {
Export(n)
}
if base.Flag.AsmHdr != "" && !n.Sym().Asm() {
@ -422,10 +422,6 @@ func funcargs2(t *types.Type) {
}
}
func initname(s string) bool {
return s == "init"
}
var vargen int
func Temp(t *types.Type) *ir.Name {