GoPLS Viewer

Home|gopls/cmd/splitdwarf/internal/macho/reloctype_string.go
1// Code generated by "stringer -type=RelocTypeGeneric,RelocTypeX86_64,RelocTypeARM,RelocTypeARM64 -output reloctype_string.go"; DO NOT EDIT.
2
3package macho
4
5import "strconv"
6
7func _() {
8    // An "invalid array index" compiler error signifies that the constant values have changed.
9    // Re-run the stringer command to generate them again.
10    var x [1]struct{}
11    _ = x[GENERIC_RELOC_VANILLA-0]
12    _ = x[GENERIC_RELOC_PAIR-1]
13    _ = x[GENERIC_RELOC_SECTDIFF-2]
14    _ = x[GENERIC_RELOC_PB_LA_PTR-3]
15    _ = x[GENERIC_RELOC_LOCAL_SECTDIFF-4]
16    _ = x[GENERIC_RELOC_TLV-5]
17}
18
19const _RelocTypeGeneric_name = "GENERIC_RELOC_VANILLAGENERIC_RELOC_PAIRGENERIC_RELOC_SECTDIFFGENERIC_RELOC_PB_LA_PTRGENERIC_RELOC_LOCAL_SECTDIFFGENERIC_RELOC_TLV"
20
21var _RelocTypeGeneric_index = [...]uint8{021396184112129}
22
23func (i RelocTypeGenericString() string {
24    if i < 0 || i >= RelocTypeGeneric(len(_RelocTypeGeneric_index)-1) {
25        return "RelocTypeGeneric(" + strconv.FormatInt(int64(i), 10) + ")"
26    }
27    return _RelocTypeGeneric_name[_RelocTypeGeneric_index[i]:_RelocTypeGeneric_index[i+1]]
28}
29func _() {
30    // An "invalid array index" compiler error signifies that the constant values have changed.
31    // Re-run the stringer command to generate them again.
32    var x [1]struct{}
33    _ = x[X86_64_RELOC_UNSIGNED-0]
34    _ = x[X86_64_RELOC_SIGNED-1]
35    _ = x[X86_64_RELOC_BRANCH-2]
36    _ = x[X86_64_RELOC_GOT_LOAD-3]
37    _ = x[X86_64_RELOC_GOT-4]
38    _ = x[X86_64_RELOC_SUBTRACTOR-5]
39    _ = x[X86_64_RELOC_SIGNED_1-6]
40    _ = x[X86_64_RELOC_SIGNED_2-7]
41    _ = x[X86_64_RELOC_SIGNED_4-8]
42    _ = x[X86_64_RELOC_TLV-9]
43}
44
45const _RelocTypeX86_64_name = "X86_64_RELOC_UNSIGNEDX86_64_RELOC_SIGNEDX86_64_RELOC_BRANCHX86_64_RELOC_GOT_LOADX86_64_RELOC_GOTX86_64_RELOC_SUBTRACTORX86_64_RELOC_SIGNED_1X86_64_RELOC_SIGNED_2X86_64_RELOC_SIGNED_4X86_64_RELOC_TLV"
46
47var _RelocTypeX86_64_index = [...]uint8{02140598096119140161182198}
48
49func (i RelocTypeX86_64String() string {
50    if i < 0 || i >= RelocTypeX86_64(len(_RelocTypeX86_64_index)-1) {
51        return "RelocTypeX86_64(" + strconv.FormatInt(int64(i), 10) + ")"
52    }
53    return _RelocTypeX86_64_name[_RelocTypeX86_64_index[i]:_RelocTypeX86_64_index[i+1]]
54}
55func _() {
56    // An "invalid array index" compiler error signifies that the constant values have changed.
57    // Re-run the stringer command to generate them again.
58    var x [1]struct{}
59    _ = x[ARM_RELOC_VANILLA-0]
60    _ = x[ARM_RELOC_PAIR-1]
61    _ = x[ARM_RELOC_SECTDIFF-2]
62    _ = x[ARM_RELOC_LOCAL_SECTDIFF-3]
63    _ = x[ARM_RELOC_PB_LA_PTR-4]
64    _ = x[ARM_RELOC_BR24-5]
65    _ = x[ARM_THUMB_RELOC_BR22-6]
66    _ = x[ARM_THUMB_32BIT_BRANCH-7]
67    _ = x[ARM_RELOC_HALF-8]
68    _ = x[ARM_RELOC_HALF_SECTDIFF-9]
69}
70
71const _RelocTypeARM_name = "ARM_RELOC_VANILLAARM_RELOC_PAIRARM_RELOC_SECTDIFFARM_RELOC_LOCAL_SECTDIFFARM_RELOC_PB_LA_PTRARM_RELOC_BR24ARM_THUMB_RELOC_BR22ARM_THUMB_32BIT_BRANCHARM_RELOC_HALFARM_RELOC_HALF_SECTDIFF"
72
73var _RelocTypeARM_index = [...]uint8{01731497392106126148162185}
74
75func (i RelocTypeARMString() string {
76    if i < 0 || i >= RelocTypeARM(len(_RelocTypeARM_index)-1) {
77        return "RelocTypeARM(" + strconv.FormatInt(int64(i), 10) + ")"
78    }
79    return _RelocTypeARM_name[_RelocTypeARM_index[i]:_RelocTypeARM_index[i+1]]
80}
81func _() {
82    // An "invalid array index" compiler error signifies that the constant values have changed.
83    // Re-run the stringer command to generate them again.
84    var x [1]struct{}
85    _ = x[ARM64_RELOC_UNSIGNED-0]
86    _ = x[ARM64_RELOC_SUBTRACTOR-1]
87    _ = x[ARM64_RELOC_BRANCH26-2]
88    _ = x[ARM64_RELOC_PAGE21-3]
89    _ = x[ARM64_RELOC_PAGEOFF12-4]
90    _ = x[ARM64_RELOC_GOT_LOAD_PAGE21-5]
91    _ = x[ARM64_RELOC_GOT_LOAD_PAGEOFF12-6]
92    _ = x[ARM64_RELOC_POINTER_TO_GOT-7]
93    _ = x[ARM64_RELOC_TLVP_LOAD_PAGE21-8]
94    _ = x[ARM64_RELOC_TLVP_LOAD_PAGEOFF12-9]
95    _ = x[ARM64_RELOC_ADDEND-10]
96}
97
98const _RelocTypeARM64_name = "ARM64_RELOC_UNSIGNEDARM64_RELOC_SUBTRACTORARM64_RELOC_BRANCH26ARM64_RELOC_PAGE21ARM64_RELOC_PAGEOFF12ARM64_RELOC_GOT_LOAD_PAGE21ARM64_RELOC_GOT_LOAD_PAGEOFF12ARM64_RELOC_POINTER_TO_GOTARM64_RELOC_TLVP_LOAD_PAGE21ARM64_RELOC_TLVP_LOAD_PAGEOFF12ARM64_RELOC_ADDEND"
99
100var _RelocTypeARM64_index = [...]uint16{020426280101128158184212243261}
101
102func (i RelocTypeARM64String() string {
103    if i < 0 || i >= RelocTypeARM64(len(_RelocTypeARM64_index)-1) {
104        return "RelocTypeARM64(" + strconv.FormatInt(int64(i), 10) + ")"
105    }
106    return _RelocTypeARM64_name[_RelocTypeARM64_index[i]:_RelocTypeARM64_index[i+1]]
107}
108
MembersX
_RelocTypeGeneric_name
RelocTypeGeneric.String
_RelocTypeX86_64_name
RelocTypeX86_64.String.i
_RelocTypeARM_name
RelocTypeARM.String.i
_RelocTypeARM64_name
_
RelocTypeARM64.String
RelocTypeX86_64.String
RelocTypeARM.String
RelocTypeARM64.String.i
RelocTypeGeneric.String.i
Members
X