Skip to content

Commit bb215de

Browse files
committed
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 <[email protected]> TryBot-Result: Gobot Gobot <[email protected]> Reviewed-by: Brad Fitzpatrick <[email protected]>
1 parent 3d0a898 commit bb215de

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/cmd/internal/obj/objfile.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ func (w *objWriter) writeSymDebug(s *LSym) {
318318
fmt.Fprintf(ctxt.Bso, "v=%d ", s.Version)
319319
}
320320
if s.Type != 0 {
321-
fmt.Fprintf(ctxt.Bso, "t=%d ", s.Type)
321+
fmt.Fprintf(ctxt.Bso, "%v ", s.Type)
322322
}
323323
if s.DuplicateOK() {
324324
fmt.Fprintf(ctxt.Bso, "dupok ")

0 commit comments

Comments
 (0)