mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
cmd/compile/internal/gc: unexport more helper functions
After the removal of the old backend many types are no longer referenced outside internal/gc. Make these functions private so that tools like honnef.co/go/unused can spot when they become dead code. In doing so this CL identified several previously public helpers which are no longer used, so removes them. This should be the last of the public functions. Change-Id: I7e9c4e72f86f391b428b9dddb6f0d516529706c3 Reviewed-on: https://go-review.googlesource.com/29134 Run-TryBot: Dave Cheney <dave@cheney.net> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
This commit is contained in:
parent
896ac677b5
commit
d7012ca282
37 changed files with 713 additions and 720 deletions
|
|
@ -363,7 +363,7 @@ func ordercall(n *Node, order *Order) {
|
|||
ordercallargs(&n.List, order)
|
||||
|
||||
if n.Op == OCALLFUNC {
|
||||
t, it := IterFields(n.Left.Type.Params())
|
||||
t, it := iterFields(n.Left.Type.Params())
|
||||
for i := range n.List.Slice() {
|
||||
// Check for "unsafe-uintptr" tag provided by escape analysis.
|
||||
// If present and the argument is really a pointer being converted
|
||||
|
|
@ -815,7 +815,7 @@ func orderstmt(n *Node, order *Order) {
|
|||
if r != nil {
|
||||
switch r.Op {
|
||||
default:
|
||||
Yyerror("unknown op in select %v", r.Op)
|
||||
yyerror("unknown op in select %v", r.Op)
|
||||
Dump("select case", r)
|
||||
|
||||
// If this is case x := <-ch or case x, y := <-ch, the case has
|
||||
|
|
@ -837,7 +837,7 @@ func orderstmt(n *Node, order *Order) {
|
|||
}
|
||||
|
||||
if r.Ninit.Len() != 0 {
|
||||
Yyerror("ninit on select recv")
|
||||
yyerror("ninit on select recv")
|
||||
dumplist("ninit", r.Ninit)
|
||||
}
|
||||
|
||||
|
|
@ -899,7 +899,7 @@ func orderstmt(n *Node, order *Order) {
|
|||
|
||||
case OSEND:
|
||||
if r.Ninit.Len() != 0 {
|
||||
Yyerror("ninit on select send")
|
||||
yyerror("ninit on select send")
|
||||
dumplist("ninit", r.Ninit)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue