github.com/llir/llvm@v0.3.6/ir/enum/dwarfattencoding_string.go (about)

     1  // Code generated by "stringer -linecomment -type DwarfAttEncoding"; 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[DwarfAttEncodingAddress-1]
    12  	_ = x[DwarfAttEncodingBoolean-2]
    13  	_ = x[DwarfAttEncodingComplexFloat-3]
    14  	_ = x[DwarfAttEncodingFloat-4]
    15  	_ = x[DwarfAttEncodingSigned-5]
    16  	_ = x[DwarfAttEncodingSignedChar-6]
    17  	_ = x[DwarfAttEncodingUnsigned-7]
    18  	_ = x[DwarfAttEncodingUnsignedChar-8]
    19  	_ = x[DwarfAttEncodingImaginaryFloat-9]
    20  	_ = x[DwarfAttEncodingPackedDecimal-10]
    21  	_ = x[DwarfAttEncodingNumericString-11]
    22  	_ = x[DwarfAttEncodingEdited-12]
    23  	_ = x[DwarfAttEncodingSignedFixed-13]
    24  	_ = x[DwarfAttEncodingUnsignedFixed-14]
    25  	_ = x[DwarfAttEncodingDecimalFloat-15]
    26  	_ = x[DwarfAttEncodingUTF-16]
    27  	_ = x[DwarfAttEncodingUCS-17]
    28  	_ = x[DwarfAttEncodingASCII-18]
    29  }
    30  
    31  const _DwarfAttEncoding_name = "DW_ATE_addressDW_ATE_booleanDW_ATE_complex_floatDW_ATE_floatDW_ATE_signedDW_ATE_signed_charDW_ATE_unsignedDW_ATE_unsigned_charDW_ATE_imaginary_floatDW_ATE_packed_decimalDW_ATE_numeric_stringDW_ATE_editedDW_ATE_signed_fixedDW_ATE_unsigned_fixedDW_ATE_decimal_floatDW_ATE_UTFDW_ATE_UCSDW_ATE_ASCII"
    32  
    33  var _DwarfAttEncoding_index = [...]uint16{0, 14, 28, 48, 60, 73, 91, 106, 126, 148, 169, 190, 203, 222, 243, 263, 273, 283, 295}
    34  
    35  func (i DwarfAttEncoding) String() string {
    36  	i -= 1
    37  	if i < 0 || i >= DwarfAttEncoding(len(_DwarfAttEncoding_index)-1) {
    38  		return "DwarfAttEncoding(" + strconv.FormatInt(int64(i+1), 10) + ")"
    39  	}
    40  	return _DwarfAttEncoding_name[_DwarfAttEncoding_index[i]:_DwarfAttEncoding_index[i+1]]
    41  }