...
1
2
3 package obj
4
5 import "strconv"
6
7 func _() {
8
9
10 var x [1]struct{}
11 _ = x[TYPE_NONE-0]
12 _ = x[TYPE_BRANCH-1]
13 _ = x[TYPE_TEXTSIZE-2]
14 _ = x[TYPE_MEM-3]
15 _ = x[TYPE_CONST-4]
16 _ = x[TYPE_FCONST-5]
17 _ = x[TYPE_SCONST-6]
18 _ = x[TYPE_REG-7]
19 _ = x[TYPE_ADDR-8]
20 _ = x[TYPE_SHIFT-9]
21 _ = x[TYPE_REGREG-10]
22 _ = x[TYPE_REGREG2-11]
23 _ = x[TYPE_INDIR-12]
24 _ = x[TYPE_REGLIST-13]
25 _ = x[TYPE_SPECIAL-14]
26 }
27
28 const _AddrType_name = "TYPE_NONETYPE_BRANCHTYPE_TEXTSIZETYPE_MEMTYPE_CONSTTYPE_FCONSTTYPE_SCONSTTYPE_REGTYPE_ADDRTYPE_SHIFTTYPE_REGREGTYPE_REGREG2TYPE_INDIRTYPE_REGLISTTYPE_SPECIAL"
29
30 var _AddrType_index = [...]uint8{0, 9, 20, 33, 41, 51, 62, 73, 81, 90, 100, 111, 123, 133, 145, 157}
31
32 func (i AddrType) String() string {
33 if i >= AddrType(len(_AddrType_index)-1) {
34 return "AddrType(" + strconv.FormatInt(int64(i), 10) + ")"
35 }
36 return _AddrType_name[_AddrType_index[i]:_AddrType_index[i+1]]
37 }
38
View as plain text