Source file src/cmd/link/internal/sym/symkind_string.go

     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_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[SDYNIMPORT-44]
    56  	_ = x[SHOSTOBJ-45]
    57  	_ = x[SUNDEFEXT-46]
    58  	_ = x[SDWARFSECT-47]
    59  	_ = x[SDWARFCUINFO-48]
    60  	_ = x[SDWARFCONST-49]
    61  	_ = x[SDWARFFCN-50]
    62  	_ = x[SDWARFABSFCN-51]
    63  	_ = x[SDWARFTYPE-52]
    64  	_ = x[SDWARFVAR-53]
    65  	_ = x[SDWARFRANGE-54]
    66  	_ = x[SDWARFLOC-55]
    67  	_ = x[SDWARFLINES-56]
    68  }
    69  
    70  const _SymKind_name = "SxxxSTEXTSELFRXSECTSMACHOPLTSTYPESSTRINGSGOSTRINGSGOFUNCSGCBITSSRODATASFUNCTABSELFROSECTSTYPERELROSSTRINGRELROSGOSTRINGRELROSGOFUNCRELROSGCBITSRELROSRODATARELROSFUNCTABRELROSTYPELINKSITABLINKSSYMTABSPCLNTABSFirstWritableSBUILDINFOSELFSECTSMACHOSMACHOGOTSWINDOWSSELFGOTSNOPTRDATASINITARRSDATASXCOFFTOCSBSSSNOPTRBSSSLIBFUZZER_EXTRA_COUNTERSTLSBSSSXREFSMACHOSYMSTRSMACHOSYMTABSMACHOINDIRECTPLTSMACHOINDIRECTGOTSFILEPATHSDYNIMPORTSHOSTOBJSUNDEFEXTSDWARFSECTSDWARFCUINFOSDWARFCONSTSDWARFFCNSDWARFABSFCNSDWARFTYPESDWARFVARSDWARFRANGESDWARFLOCSDWARFLINES"
    71  
    72  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, 337, 344, 349, 361, 373, 390, 407, 416, 426, 434, 443, 453, 465, 476, 485, 497, 507, 516, 527, 536, 547}
    73  
    74  func (i SymKind) String() string {
    75  	if i >= SymKind(len(_SymKind_index)-1) {
    76  		return "SymKind(" + strconv.FormatInt(int64(i), 10) + ")"
    77  	}
    78  	return _SymKind_name[_SymKind_index[i]:_SymKind_index[i+1]]
    79  }
    80  

View as plain text