github.com/gagliardetto/golang-go@v0.0.0-20201020153340-53909ea70814/cmd/link/internal/sym/symkind_string.go (about)

     1  // Code generated by "stringer -type=SymKind symkind.go"; DO NOT EDIT.
     2  
     3  package sym
     4  
     5  import "strconv"
     6  
     7  func _() {
     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[Sxxx-0]
    12  	_ = x[STEXT-1]
    13  	_ = x[SELFRXSECT-2]
    14  	_ = x[STYPE-3]
    15  	_ = x[SSTRING-4]
    16  	_ = x[SGOSTRING-5]
    17  	_ = x[SGOFUNC-6]
    18  	_ = x[SGCBITS-7]
    19  	_ = x[SRODATA-8]
    20  	_ = x[SFUNCTAB-9]
    21  	_ = x[SELFROSECT-10]
    22  	_ = x[SMACHOPLT-11]
    23  	_ = x[STYPERELRO-12]
    24  	_ = x[SSTRINGRELRO-13]
    25  	_ = x[SGOSTRINGRELRO-14]
    26  	_ = x[SGOFUNCRELRO-15]
    27  	_ = x[SGCBITSRELRO-16]
    28  	_ = x[SRODATARELRO-17]
    29  	_ = x[SFUNCTABRELRO-18]
    30  	_ = x[STYPELINK-19]
    31  	_ = x[SITABLINK-20]
    32  	_ = x[SSYMTAB-21]
    33  	_ = x[SPCLNTAB-22]
    34  	_ = x[SFirstWritable-23]
    35  	_ = x[SBUILDINFO-24]
    36  	_ = x[SELFSECT-25]
    37  	_ = x[SMACHO-26]
    38  	_ = x[SMACHOGOT-27]
    39  	_ = x[SWINDOWS-28]
    40  	_ = x[SELFGOT-29]
    41  	_ = x[SNOPTRDATA-30]
    42  	_ = x[SINITARR-31]
    43  	_ = x[SDATA-32]
    44  	_ = x[SXCOFFTOC-33]
    45  	_ = x[SBSS-34]
    46  	_ = x[SNOPTRBSS-35]
    47  	_ = x[SLIBFUZZER_EXTRA_COUNTER-36]
    48  	_ = x[STLSBSS-37]
    49  	_ = x[SXREF-38]
    50  	_ = x[SMACHOSYMSTR-39]
    51  	_ = x[SMACHOSYMTAB-40]
    52  	_ = x[SMACHOINDIRECTPLT-41]
    53  	_ = x[SMACHOINDIRECTGOT-42]
    54  	_ = x[SFILEPATH-43]
    55  	_ = x[SCONST-44]
    56  	_ = x[SDYNIMPORT-45]
    57  	_ = x[SHOSTOBJ-46]
    58  	_ = x[SUNDEFEXT-47]
    59  	_ = x[SDWARFSECT-48]
    60  	_ = x[SDWARFINFO-49]
    61  	_ = x[SDWARFRANGE-50]
    62  	_ = x[SDWARFLOC-51]
    63  	_ = x[SDWARFLINES-52]
    64  	_ = x[SABIALIAS-53]
    65  }
    66  
    67  const _SymKind_name = "SxxxSTEXTSELFRXSECTSTYPESSTRINGSGOSTRINGSGOFUNCSGCBITSSRODATASFUNCTABSELFROSECTSMACHOPLTSTYPERELROSSTRINGRELROSGOSTRINGRELROSGOFUNCRELROSGCBITSRELROSRODATARELROSFUNCTABRELROSTYPELINKSITABLINKSSYMTABSPCLNTABSFirstWritableSBUILDINFOSELFSECTSMACHOSMACHOGOTSWINDOWSSELFGOTSNOPTRDATASINITARRSDATASXCOFFTOCSBSSSNOPTRBSSSLIBFUZZER_EXTRA_COUNTERSTLSBSSSXREFSMACHOSYMSTRSMACHOSYMTABSMACHOINDIRECTPLTSMACHOINDIRECTGOTSFILEPATHSCONSTSDYNIMPORTSHOSTOBJSUNDEFEXTSDWARFSECTSDWARFINFOSDWARFRANGESDWARFLOCSDWARFLINESSABIALIAS"
    68  
    69  var _SymKind_index = [...]uint16{0, 4, 9, 19, 24, 31, 40, 47, 54, 61, 69, 79, 88, 98, 110, 124, 136, 148, 160, 173, 182, 191, 198, 206, 220, 230, 238, 244, 253, 261, 268, 278, 286, 291, 300, 304, 313, 337, 344, 349, 361, 373, 390, 407, 416, 422, 432, 440, 449, 459, 469, 480, 489, 500, 509}
    70  
    71  func (i SymKind) String() string {
    72  	if i >= SymKind(len(_SymKind_index)-1) {
    73  		return "SymKind(" + strconv.FormatInt(int64(i), 10) + ")"
    74  	}
    75  	return _SymKind_name[_SymKind_index[i]:_SymKind_index[i+1]]
    76  }