github.com/go-asm/go@v1.21.1-0.20240213172139-40c5ead50c48/cmd/link/sym/symkind_string.go (about)

     1  // Code generated by "stringer -type=SymKind"; 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[SMACHOPLT-3]
    15  	_ = x[STYPE-4]
    16  	_ = x[SSTRING-5]
    17  	_ = x[SGOSTRING-6]
    18  	_ = x[SGOFUNC-7]
    19  	_ = x[SGCBITS-8]
    20  	_ = x[SRODATA-9]
    21  	_ = x[SFUNCTAB-10]
    22  	_ = x[SELFROSECT-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_8BIT_COUNTER-36]
    48  	_ = x[SCOVERAGE_COUNTER-37]
    49  	_ = x[SCOVERAGE_AUXVAR-38]
    50  	_ = x[STLSBSS-39]
    51  	_ = x[SXREF-40]
    52  	_ = x[SMACHOSYMSTR-41]
    53  	_ = x[SMACHOSYMTAB-42]
    54  	_ = x[SMACHOINDIRECTPLT-43]
    55  	_ = x[SMACHOINDIRECTGOT-44]
    56  	_ = x[SFILEPATH-45]
    57  	_ = x[SDYNIMPORT-46]
    58  	_ = x[SHOSTOBJ-47]
    59  	_ = x[SUNDEFEXT-48]
    60  	_ = x[SDWARFSECT-49]
    61  	_ = x[SDWARFCUINFO-50]
    62  	_ = x[SDWARFCONST-51]
    63  	_ = x[SDWARFFCN-52]
    64  	_ = x[SDWARFABSFCN-53]
    65  	_ = x[SDWARFTYPE-54]
    66  	_ = x[SDWARFVAR-55]
    67  	_ = x[SDWARFRANGE-56]
    68  	_ = x[SDWARFLOC-57]
    69  	_ = x[SDWARFLINES-58]
    70  	_ = x[SSEHUNWINDINFO-59]
    71  	_ = x[SSEHSECT-60]
    72  }
    73  
    74  const _SymKind_name = "SxxxSTEXTSELFRXSECTSMACHOPLTSTYPESSTRINGSGOSTRINGSGOFUNCSGCBITSSRODATASFUNCTABSELFROSECTSTYPERELROSSTRINGRELROSGOSTRINGRELROSGOFUNCRELROSGCBITSRELROSRODATARELROSFUNCTABRELROSTYPELINKSITABLINKSSYMTABSPCLNTABSFirstWritableSBUILDINFOSELFSECTSMACHOSMACHOGOTSWINDOWSSELFGOTSNOPTRDATASINITARRSDATASXCOFFTOCSBSSSNOPTRBSSSLIBFUZZER_8BIT_COUNTERSCOVERAGE_COUNTERSCOVERAGE_AUXVARSTLSBSSSXREFSMACHOSYMSTRSMACHOSYMTABSMACHOINDIRECTPLTSMACHOINDIRECTGOTSFILEPATHSDYNIMPORTSHOSTOBJSUNDEFEXTSDWARFSECTSDWARFCUINFOSDWARFCONSTSDWARFFCNSDWARFABSFCNSDWARFTYPESDWARFVARSDWARFRANGESDWARFLOCSDWARFLINESSSEHUNWINDINFOSSEHSECT"
    75  
    76  var _SymKind_index = [...]uint16{0, 4, 9, 19, 28, 33, 40, 49, 56, 63, 70, 78, 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, 336, 353, 369, 376, 381, 393, 405, 422, 439, 448, 458, 466, 475, 485, 497, 508, 517, 529, 539, 548, 559, 568, 579, 593, 601}
    77  
    78  func (i SymKind) String() string {
    79  	if i >= SymKind(len(_SymKind_index)-1) {
    80  		return "SymKind(" + strconv.FormatInt(int64(i), 10) + ")"
    81  	}
    82  	return _SymKind_name[_SymKind_index[i]:_SymKind_index[i+1]]
    83  }