...
Run Format

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

Documentation: cmd/internal/objabi

     1  // Code generated by "stringer -type=RelocType"; DO NOT EDIT.
     2  
     3  package objabi
     4  
     5  import "strconv"
     6  
     7  const _RelocType_name = "R_ADDRR_ADDRPOWERR_ADDRARM64R_ADDRMIPSR_ADDROFFR_WEAKADDROFFR_SIZER_CALLR_CALLARMR_CALLARM64R_CALLINDR_CALLPOWERR_CALLMIPSR_CONSTR_PCRELR_TLS_LER_TLS_IER_GOTOFFR_PLT0R_PLT1R_PLT2R_USEFIELDR_USETYPER_METHODOFFR_POWER_TOCR_GOTPCRELR_JMPMIPSR_DWARFSECREFR_DWARFFILEREFR_ARM64_TLS_LER_ARM64_TLS_IER_ARM64_GOTPCRELR_POWER_TLS_LER_POWER_TLS_IER_POWER_TLSR_ADDRPOWER_DSR_ADDRPOWER_GOTR_ADDRPOWER_PCRELR_ADDRPOWER_TOCRELR_ADDRPOWER_TOCREL_DSR_PCRELDBLR_ADDRMIPSUR_ADDRMIPSTLSR_ADDRCUOFFR_WASMIMPORT"
     8  
     9  var _RelocType_index = [...]uint16{0, 6, 17, 28, 38, 47, 60, 66, 72, 81, 92, 101, 112, 122, 129, 136, 144, 152, 160, 166, 172, 178, 188, 197, 208, 219, 229, 238, 251, 265, 279, 293, 309, 323, 337, 348, 362, 377, 394, 412, 433, 443, 454, 467, 478, 490}
    10  
    11  func (i RelocType) String() string {
    12  	i -= 1
    13  	if i < 0 || i >= RelocType(len(_RelocType_index)-1) {
    14  		return "RelocType(" + strconv.FormatInt(int64(i+1), 10) + ")"
    15  	}
    16  	return _RelocType_name[_RelocType_index[i]:_RelocType_index[i+1]]
    17  }
    18  

View as plain text