Source file src/cmd/internal/objabi/symkind_string.go

     1  // Code generated by "stringer -type=SymKind"; DO NOT EDIT.
     2  
     3  package objabi
     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[SRODATA-2]
    14  	_ = x[SNOPTRDATA-3]
    15  	_ = x[SDATA-4]
    16  	_ = x[SBSS-5]
    17  	_ = x[SNOPTRBSS-6]
    18  	_ = x[STLSBSS-7]
    19  	_ = x[SDWARFCUINFO-8]
    20  	_ = x[SDWARFCONST-9]
    21  	_ = x[SDWARFFCN-10]
    22  	_ = x[SDWARFABSFCN-11]
    23  	_ = x[SDWARFTYPE-12]
    24  	_ = x[SDWARFVAR-13]
    25  	_ = x[SDWARFRANGE-14]
    26  	_ = x[SDWARFLOC-15]
    27  	_ = x[SDWARFLINES-16]
    28  	_ = x[SLIBFUZZER_8BIT_COUNTER-17]
    29  	_ = x[SCOVERAGE_COUNTER-18]
    30  	_ = x[SCOVERAGE_AUXVAR-19]
    31  	_ = x[SSEHUNWINDINFO-20]
    32  }
    33  
    34  const _SymKind_name = "SxxxSTEXTSRODATASNOPTRDATASDATASBSSSNOPTRBSSSTLSBSSSDWARFCUINFOSDWARFCONSTSDWARFFCNSDWARFABSFCNSDWARFTYPESDWARFVARSDWARFRANGESDWARFLOCSDWARFLINESSLIBFUZZER_8BIT_COUNTERSCOVERAGE_COUNTERSCOVERAGE_AUXVARSSEHUNWINDINFO"
    35  
    36  var _SymKind_index = [...]uint8{0, 4, 9, 16, 26, 31, 35, 44, 51, 63, 74, 83, 95, 105, 114, 125, 134, 145, 168, 185, 201, 215}
    37  
    38  func (i SymKind) String() string {
    39  	if i >= SymKind(len(_SymKind_index)-1) {
    40  		return "SymKind(" + strconv.FormatInt(int64(i), 10) + ")"
    41  	}
    42  	return _SymKind_name[_SymKind_index[i]:_SymKind_index[i+1]]
    43  }
    44  

View as plain text