Source file src/cmd/internal/obj/addrtype_string.go

     1  // Code generated by "stringer -type AddrType"; DO NOT EDIT.
     2  
     3  package obj
     4  
     5  import "strconv"
     6  
     7  const _AddrType_name = "TYPE_NONETYPE_BRANCHTYPE_TEXTSIZETYPE_MEMTYPE_CONSTTYPE_FCONSTTYPE_SCONSTTYPE_REGTYPE_ADDRTYPE_SHIFTTYPE_REGREGTYPE_REGREG2TYPE_INDIRTYPE_REGLIST"
     8  
     9  var _AddrType_index = [...]uint8{0, 9, 20, 33, 41, 51, 62, 73, 81, 90, 100, 111, 123, 133, 145}
    10  
    11  func (i AddrType) String() string {
    12  	if i >= AddrType(len(_AddrType_index)-1) {
    13  		return "AddrType(" + strconv.FormatInt(int64(i), 10) + ")"
    14  	}
    15  	return _AddrType_name[_AddrType_index[i]:_AddrType_index[i+1]]
    16  }
    17  

View as plain text