mirror of
https://github.com/golang/go
synced 2024-10-04 15:09:59 +00:00
[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:
parent
77365c5ed7
commit
4a9d9adea4
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue