Passes toolstash -cmp.
Change-Id: Ida3eda9bd9d79a34c1c3f18cb41aea9392698076
Reviewed-on: https://go-review.googlesource.com/36950
Run-TryBot: Matthew Dempsky <mdempsky@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Josh Bleecher Snyder <josharian@gmail.com>
continue
}
- var name int16
+ var name obj.AddrName
switch n.Class {
case PAUTO:
if !n.Used {
Index int16
Scale int16 // Sometimes holds a register.
Type AddrType
- Name int8
+ Name AddrName
Class int8
Offset int64
Sym *LSym
Node interface{} // for use by compiler
}
-type AddrType uint8
+type AddrName int8
const (
- NAME_NONE = 0 + iota
+ NAME_NONE AddrName = iota
NAME_EXTERN
NAME_STATIC
NAME_AUTO
NAME_GOTREF
)
-const (
- TYPE_NONE AddrType = 0
+type AddrType uint8
- TYPE_BRANCH AddrType = 5 + iota
+const (
+ TYPE_NONE AddrType = iota
+ TYPE_BRANCH
TYPE_TEXTSIZE
TYPE_MEM
TYPE_CONST
Asym *LSym
Link *Auto
Aoffset int32
- Name int16
+ Name AddrName
Gotype *LSym
}