mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
cmd/compile/internal/gc: remove oconv(op, 0) calls
Updates #15462 Automatic refactor with sed -e. Replace all oconv(op, 0) to string conversion with the raw op value which fmt's %v verb can print directly. The remaining oconv(op, FmtSharp) will be replaced with op.GoString and %#v in the next CL. Change-Id: I5e2f7ee0bd35caa65c6dd6cb1a866b5e4519e641 Reviewed-on: https://go-review.googlesource.com/22499 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
cbd72318b9
commit
d3c79d324a
18 changed files with 77 additions and 77 deletions
|
|
@ -327,7 +327,7 @@ func Naddr(a *obj.Addr, n *Node) {
|
|||
a := a // copy to let escape into Ctxt.Dconv
|
||||
Debug['h'] = 1
|
||||
Dump("naddr", n)
|
||||
Fatalf("naddr: bad %v %v", oconv(n.Op, 0), Ctxt.Dconv(a))
|
||||
Fatalf("naddr: bad %v %v", n.Op, Ctxt.Dconv(a))
|
||||
|
||||
case OREGISTER:
|
||||
a.Type = obj.TYPE_REG
|
||||
|
|
@ -422,7 +422,7 @@ func Naddr(a *obj.Addr, n *Node) {
|
|||
if !n.Left.Type.IsStruct() || n.Left.Type.Field(0).Sym != n.Sym {
|
||||
Debug['h'] = 1
|
||||
Dump("naddr", n)
|
||||
Fatalf("naddr: bad %v %v", oconv(n.Op, 0), Ctxt.Dconv(a))
|
||||
Fatalf("naddr: bad %v %v", n.Op, Ctxt.Dconv(a))
|
||||
}
|
||||
Naddr(a, n.Left)
|
||||
|
||||
|
|
@ -465,7 +465,7 @@ func Naddr(a *obj.Addr, n *Node) {
|
|||
}
|
||||
if a.Type != obj.TYPE_MEM {
|
||||
a := a // copy to let escape into Ctxt.Dconv
|
||||
Fatalf("naddr: OADDR %v (from %v)", Ctxt.Dconv(a), oconv(n.Left.Op, 0))
|
||||
Fatalf("naddr: OADDR %v (from %v)", Ctxt.Dconv(a), n.Left.Op)
|
||||
}
|
||||
a.Type = obj.TYPE_ADDR
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue