mirror of
https://github.com/golang/go.git
synced 2025-11-11 06:01:06 +00:00
[dev.regabi] cmd/compile: add newline to ir.Dump
If you do two ir.Dumps in a row, there's no newline between them. Change-Id: I1a80dd22da68cb677eb9abd7a50571ea33584010 Reviewed-on: https://go-review.googlesource.com/c/go/+/280672 Trust: Keith Randall <khr@golang.org> Reviewed-by: Matthew Dempsky <mdempsky@google.com>
This commit is contained in:
parent
451693af71
commit
f0d99def5b
1 changed files with 1 additions and 1 deletions
|
|
@ -978,7 +978,7 @@ func (l Nodes) Format(s fmt.State, verb rune) {
|
||||||
|
|
||||||
// Dump prints the message s followed by a debug dump of n.
|
// Dump prints the message s followed by a debug dump of n.
|
||||||
func Dump(s string, n Node) {
|
func Dump(s string, n Node) {
|
||||||
fmt.Printf("%s [%p]%+v", s, n, n)
|
fmt.Printf("%s [%p]%+v\n", s, n, n)
|
||||||
}
|
}
|
||||||
|
|
||||||
// DumpList prints the message s followed by a debug dump of each node in the list.
|
// DumpList prints the message s followed by a debug dump of each node in the list.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue