Passes toolstash -cmp.
Change-Id: I42c962cc5a3ffec2969f223cf238c2fdadbf5857
Reviewed-on: https://go-review.googlesource.com/22381
Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
 
        if fmtmode == FDbg {
                fmtmode = 0
-               str := Econv(t.Etype) + "-" + typefmt(t, flag)
+               str := t.Etype.String() + "-" + typefmt(t, flag)
                fmtmode = FDbg
                return str
        }
                if fmtmode == FExp {
                        Fatalf("cannot use TDDDFIELD with old exporter")
                }
-               return fmt.Sprintf("%v <%v> %v", Econv(t.Etype), t.Sym, t.DDDField())
+               return fmt.Sprintf("%v <%v> %v", t.Etype, t.Sym, t.DDDField())
 
        case Txxx:
                return "Txxx"
        }
 
        if fmtmode == FExp {
-               Fatalf("missing %v case during export", Econv(t.Etype))
+               Fatalf("missing %v case during export", t.Etype)
        }
 
        // Don't know how to handle - fall back to detailed prints.
-       return fmt.Sprintf("%v <%v> %v", Econv(t.Etype), t.Sym, t.Elem())
+       return fmt.Sprintf("%v <%v> %v", t.Etype, t.Sym, t.Elem())
 }
 
 // Statements which may be rendered with a simplestmt as init.
 
        }
 
        if Debug['R'] != 0 {
-               fmt.Printf("bit=%2d et=%v w=%d+%d %v %v flag=%d\n", i, Econv(et), o, w, Nconv(node, FmtSharp), Ctxt.Dconv(a), v.addr)
+               fmt.Printf("bit=%2d et=%v w=%d+%d %v %v flag=%d\n", i, et, o, w, Nconv(node, FmtSharp), Ctxt.Dconv(a), v.addr)
        }
        Ostats.Nvar++
 
        r.regno = 0
        switch v.etype {
        default:
-               Fatalf("unknown etype %d/%v", Bitno(b), Econv(v.etype))
+               Fatalf("unknown etype %d/%v", Bitno(b), v.etype)
 
        case TINT8,
                TUINT8,
                }
 
                if Debug['R'] != 0 && Debug['v'] != 0 {
-                       fmt.Printf("bit=%2d addr=%d et=%v w=%-2d s=%v + %d\n", i, v.addr, Econv(v.etype), v.width, v.node, v.offset)
+                       fmt.Printf("bit=%2d addr=%d et=%v w=%-2d s=%v + %d\n", i, v.addr, v.etype, v.width, v.node, v.offset)
                }
        }
 
                if rgp.regno != 0 {
                        if Debug['R'] != 0 && Debug['v'] != 0 {
                                v := &vars[rgp.varno]
-                               fmt.Printf("registerize %v+%d (bit=%2d et=%v) in %v usedreg=%#x vreg=%#x\n", v.node, v.offset, rgp.varno, Econv(v.etype), obj.Rconv(int(rgp.regno)), usedreg, vreg)
+                               fmt.Printf("registerize %v+%d (bit=%2d et=%v) in %v usedreg=%#x vreg=%#x\n", v.node, v.offset, rgp.varno, v.etype, obj.Rconv(int(rgp.regno)), usedreg, vreg)
                        }
 
                        paint3(rgp.enter, int(rgp.varno), vreg, int(rgp.regno))
 
        etype := s.concreteEtype(t)
        x, ok := opToSSA[opAndType{op, etype}]
        if !ok {
-               s.Unimplementedf("unhandled binary op %s %s", op, Econv(etype))
+               s.Unimplementedf("unhandled binary op %s %s", op, etype)
        }
        return x
 }
        etype2 := s.concreteEtype(u)
        x, ok := shiftOpToSSA[opAndTwoTypes{op, etype1, etype2}]
        if !ok {
-               s.Unimplementedf("unhandled shift op %s etype=%s/%s", op, Econv(etype1), Econv(etype2))
+               s.Unimplementedf("unhandled shift op %s etype=%s/%s", op, etype1, etype2)
        }
        return x
 }
        etype1 := s.concreteEtype(t)
        x, ok := opToSSA[opAndType{op, etype1}]
        if !ok {
-               s.Unimplementedf("unhandled rotate op %s etype=%s", op, Econv(etype1))
+               s.Unimplementedf("unhandled rotate op %s etype=%s", op, etype1)
        }
        return x
 }
                        return nil
                }
                if etypesign(from.Etype) != etypesign(to.Etype) {
-                       s.Fatalf("CONVNOP sign mismatch %v (%s) -> %v (%s)\n", from, Econv(from.Etype), to, Econv(to.Etype))
+                       s.Fatalf("CONVNOP sign mismatch %v (%s) -> %v (%s)\n", from, from.Etype, to, to.Etype)
                        return nil
                }
 
                                s.newValue1(op, ttp, s.newValue1(ssa.OpComplexImag, ftp, x)))
                }
 
-               s.Unimplementedf("unhandled OCONV %s -> %s", Econv(n.Left.Type.Etype), Econv(n.Type.Etype))
+               s.Unimplementedf("unhandled OCONV %s -> %s", n.Left.Type.Etype, n.Type.Etype)
                return nil
 
        case ODOTTYPE:
 
                return TFLOAT64
        }
 
-       Fatalf("cplxsubtype: %v\n", Econv(et))
+       Fatalf("cplxsubtype: %v\n", et)
        return 0
 }
 
 
 }
 
 func (t *Type) SimpleString() string {
-       return Econv(t.Etype)
+       return t.Etype.String()
 }
 
 // Compare compares types for purposes of the SSA back