mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
cmd/compile/internal: unexport gc.Oconv
Updates #15462 Semi automatic change with gofmt -r and hand fixups for callers outside internal/gc. All the uses of gc.Oconv outside cmd/compile/internal/gc were for the Oconv(op, 0) form, which is already handled the Op.String method. Replace the use of gc.Oconv(op, 0) with op itself, which will call Op.String via the %v or %s verb. Unexport Oconv. Change-Id: I84da2a2e4381b35f52efce427b2d6a3bccdf2526 Reviewed-on: https://go-review.googlesource.com/22496 Run-TryBot: Dave Cheney <dave@cheney.net> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Josh Bleecher Snyder <josharian@gmail.com>
This commit is contained in:
parent
707aed0363
commit
8f2e780e8a
30 changed files with 115 additions and 115 deletions
|
|
@ -1203,9 +1203,9 @@ func printframenode(n *Node) {
|
|||
}
|
||||
switch n.Op {
|
||||
case ONAME:
|
||||
fmt.Printf("%v %v G%d %v width=%d\n", Oconv(n.Op, 0), n.Sym, n.Name.Vargen, n.Type, w)
|
||||
fmt.Printf("%v %v G%d %v width=%d\n", oconv(n.Op, 0), n.Sym, n.Name.Vargen, n.Type, w)
|
||||
case OTYPE:
|
||||
fmt.Printf("%v %v width=%d\n", Oconv(n.Op, 0), n.Type, w)
|
||||
fmt.Printf("%v %v width=%d\n", oconv(n.Op, 0), n.Type, w)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -1286,7 +1286,7 @@ func badtype(op Op, tl *Type, tr *Type) {
|
|||
}
|
||||
|
||||
s := fmt_
|
||||
Yyerror("illegal types for operand: %v%s", Oconv(op, 0), s)
|
||||
Yyerror("illegal types for operand: %v%s", oconv(op, 0), s)
|
||||
}
|
||||
|
||||
// Brcom returns !(op).
|
||||
|
|
@ -1306,7 +1306,7 @@ func Brcom(op Op) Op {
|
|||
case OGE:
|
||||
return OLT
|
||||
}
|
||||
Fatalf("brcom: no com for %v\n", Oconv(op, 0))
|
||||
Fatalf("brcom: no com for %v\n", oconv(op, 0))
|
||||
return op
|
||||
}
|
||||
|
||||
|
|
@ -1327,7 +1327,7 @@ func Brrev(op Op) Op {
|
|||
case OGE:
|
||||
return OLE
|
||||
}
|
||||
Fatalf("brrev: no rev for %v\n", Oconv(op, 0))
|
||||
Fatalf("brrev: no rev for %v\n", oconv(op, 0))
|
||||
return op
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue