summaryrefslogtreecommitdiffstats
path: root/src/cmd/internal/obj/abi_string.go
blob: 77868eeac0da407eb549b4f03ef9df1278d05589 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
// Code generated by "stringer -type ABI"; DO NOT EDIT.

package obj

import "strconv"

func _() {
	// An "invalid array index" compiler error signifies that the constant values have changed.
	// Re-run the stringer command to generate them again.
	var x [1]struct{}
	_ = x[ABI0-0]
	_ = x[ABIInternal-1]
	_ = x[ABICount-2]
}

const _ABI_name = "ABI0ABIInternalABICount"

var _ABI_index = [...]uint8{0, 4, 15, 23}

func (i ABI) String() string {
	if i >= ABI(len(_ABI_index)-1) {
		return "ABI(" + strconv.FormatInt(int64(i), 10) + ")"
	}
	return _ABI_name[_ABI_index[i]:_ABI_index[i+1]]
}