aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/internal
diff options
context:
space:
mode:
authorJosh Bleecher Snyder <josharian@gmail.com>2017-04-16 14:48:16 -0700
committerJosh Bleecher Snyder <josharian@gmail.com>2017-04-17 03:12:49 +0000
commitbb215de8a67bc294d933df0413376be7e973d404 (patch)
treebc576eedefe423d567570c584e3d56c528eab766 /src/cmd/internal
parent3d0a89838536fa828445df638c36c3f8034ac74d (diff)
downloadgo-bb215de8a67bc294d933df0413376be7e973d404.tar.xz
cmd/internal/obj: pretty-print LSym.Type when debugging
We have a stringer for LSym.Type. Use it. Before: "".algarray t=31 size=224 After: "".algarray SBSS size=224 Change-Id: Ib4c7d2bc1dbe9943cf2a5dfa5d9f2d7fbd50b7f2 Reviewed-on: https://go-review.googlesource.com/40862 Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Diffstat (limited to 'src/cmd/internal')
-rw-r--r--src/cmd/internal/obj/objfile.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd/internal/obj/objfile.go b/src/cmd/internal/obj/objfile.go
index 518aab18da..8f54a9c728 100644
--- a/src/cmd/internal/obj/objfile.go
+++ b/src/cmd/internal/obj/objfile.go
@@ -318,7 +318,7 @@ func (w *objWriter) writeSymDebug(s *LSym) {
fmt.Fprintf(ctxt.Bso, "v=%d ", s.Version)
}
if s.Type != 0 {
- fmt.Fprintf(ctxt.Bso, "t=%d ", s.Type)
+ fmt.Fprintf(ctxt.Bso, "%v ", s.Type)
}
if s.DuplicateOK() {
fmt.Fprintf(ctxt.Bso, "dupok ")