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
|
|
@ -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", n.Op, 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", n.Op, 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", op, 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", op)
|
||||
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", op)
|
||||
return op
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue