github.com/llir/llvm@v0.3.6/ir/enum/dwarfvirtuality_string.go (about) 1 // Code generated by "stringer -linecomment -type DwarfVirtuality"; DO NOT EDIT. 2 3 package enum 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[DwarfVirtualityNone-0] 12 _ = x[DwarfVirtualityVirtual-1] 13 _ = x[DwarfVirtualityPureVirtual-2] 14 } 15 16 const _DwarfVirtuality_name = "DW_VIRTUALITY_noneDW_VIRTUALITY_virtualDW_VIRTUALITY_pure_virtual" 17 18 var _DwarfVirtuality_index = [...]uint8{0, 18, 39, 65} 19 20 func (i DwarfVirtuality) String() string { 21 if i < 0 || i >= DwarfVirtuality(len(_DwarfVirtuality_index)-1) { 22 return "DwarfVirtuality(" + strconv.FormatInt(int64(i), 10) + ")" 23 } 24 return _DwarfVirtuality_name[_DwarfVirtuality_index[i]:_DwarfVirtuality_index[i+1]] 25 }