]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: improve debugging output for GOSSAFUNC
authorDavid Chase <drchase@google.com>
Mon, 20 Nov 2017 21:47:08 +0000 (16:47 -0500)
committerDavid Chase <drchase@google.com>
Tue, 21 Nov 2017 16:29:33 +0000 (16:29 +0000)
commitbd41c6783bcb079aac585948868107df8d30f6d9
treeed9cfb56a480dd95f15e12ddc4e9eb6e133e5a57
parent4a3d408d18df344dd8e597b46f7ddb963a9d9ddf
cmd/compile: improve debugging output for GOSSAFUNC

This changes the assembly language output to use the
innermost (instead of outermost) position for line
number and file.

The file is printed separately, only when it changes,
to remove redundant and space-consuming noise from the
output.

Unknown positions have line number "?"

The output format was changed slightly to make it
easier to read.

One source of gratuitous variation in debugging output was
removed.

Change-Id: I1fd9c8b0ddd82766488582fb684dce4b04f35723
Reviewed-on: https://go-review.googlesource.com/78895
Run-TryBot: David Chase <drchase@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Cherry Zhang <cherryyz@google.com>
src/cmd/compile/fmt_test.go
src/cmd/compile/internal/gc/main.go
src/cmd/compile/internal/gc/ssa.go
src/cmd/compile/internal/ssa/value.go
src/cmd/internal/obj/inl.go
src/cmd/internal/obj/util.go