mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +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
1 changed files with 1 additions and 5 deletions
|
|
@ -266,7 +266,7 @@ func autoexport(n *ir.Name, ctxt ir.Class) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
if types.IsExported(n.Sym().Name) || initname(n.Sym().Name) {
|
if types.IsExported(n.Sym().Name) || n.Sym().Name == "init" {
|
||||||
Export(n)
|
Export(n)
|
||||||
}
|
}
|
||||||
if base.Flag.AsmHdr != "" && !n.Sym().Asm() {
|
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
|
var vargen int
|
||||||
|
|
||||||
func Temp(t *types.Type) *ir.Name {
|
func Temp(t *types.Type) *ir.Name {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue