]> Cypherpunks repositories - gostls13.git/commitdiff
[dev.ssa] cmd/compile: print aux value also
authorTodd Neal <todd@tneal.org>
Fri, 12 Feb 2016 00:13:17 +0000 (18:13 -0600)
committerKeith Randall <khr@golang.org>
Fri, 12 Feb 2016 00:44:36 +0000 (00:44 +0000)
When printing a value with just an aux, print the aux as well. Debugging
cse is easier when the aux values are visible.

Change-Id: Ifaf96bdb25462c9df7ba01fdfdbf0d379631f555
Reviewed-on: https://go-review.googlesource.com/19476
Reviewed-by: Keith Randall <khr@golang.org>
src/cmd/compile/internal/ssa/value.go

index 0d6c19b80a0aefe070c747df8e49e703b3a0df0f..c2ea6ee202028764620e37235d8d1a0c7a8f9e15 100644 (file)
@@ -113,6 +113,10 @@ func (v *Value) LongString() string {
                s += fmt.Sprintf(" [%g]", v.AuxFloat())
        case auxString:
                s += fmt.Sprintf(" {%s}", v.Aux)
+       case auxSym:
+               if v.Aux != nil {
+                       s += fmt.Sprintf(" {%s}", v.Aux)
+               }
        case auxSymOff:
                if v.Aux != nil {
                        s += fmt.Sprintf(" {%s}", v.Aux)