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_EXTRA_COUNTER-17]
    29  }
    30  
    31  const _SymKind_name = "SxxxSTEXTSRODATASNOPTRDATASDATASBSSSNOPTRBSSSTLSBSSSDWARFCUINFOSDWARFCONSTSDWARFFCNSDWARFABSFCNSDWARFTYPESDWARFVARSDWARFRANGESDWARFLOCSDWARFLINESSLIBFUZZER_EXTRA_COUNTER"
    32  
    33  var _SymKind_index = [...]uint8{0, 4, 9, 16, 26, 31, 35, 44, 51, 63, 74, 83, 95, 105, 114, 125, 134, 145, 169}
    34  
    35  func (i SymKind) String() string {
    36  	if i >= SymKind(len(_SymKind_index)-1) {
    37  		return "SymKind(" + strconv.FormatInt(int64(i), 10) + ")"
    38  	}
    39  	return _SymKind_name[_SymKind_index[i]:_SymKind_index[i+1]]
    40  }
    41  

View as plain text