github.com/llir/llvm@v0.3.6/ir/enum/dwarflang_string.go (about) 1 // Code generated by "stringer -linecomment -type DwarfLang"; 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[DwarfLangC89-1] 12 _ = x[DwarfLangC-2] 13 _ = x[DwarfLangAda83-3] 14 _ = x[DwarfLangCPlusPlus-4] 15 _ = x[DwarfLangCobol74-5] 16 _ = x[DwarfLangCobol85-6] 17 _ = x[DwarfLangFortran77-7] 18 _ = x[DwarfLangFortran90-8] 19 _ = x[DwarfLangPascal83-9] 20 _ = x[DwarfLangModula2-10] 21 _ = x[DwarfLangJava-11] 22 _ = x[DwarfLangC99-12] 23 _ = x[DwarfLangAda95-13] 24 _ = x[DwarfLangFortran95-14] 25 _ = x[DwarfLangPLI-15] 26 _ = x[DwarfLangObjC-16] 27 _ = x[DwarfLangObjCPlusPlus-17] 28 _ = x[DwarfLangUPC-18] 29 _ = x[DwarfLangD-19] 30 _ = x[DwarfLangPython-20] 31 _ = x[DwarfLangOpenCL-21] 32 _ = x[DwarfLangGo-22] 33 _ = x[DwarfLangModula3-23] 34 _ = x[DwarfLangHaskell-24] 35 _ = x[DwarfLangCPlusPlus03-25] 36 _ = x[DwarfLangCPlusPlus11-26] 37 _ = x[DwarfLangOCaml-27] 38 _ = x[DwarfLangRust-28] 39 _ = x[DwarfLangC11-29] 40 _ = x[DwarfLangSwift-30] 41 _ = x[DwarfLangJulia-31] 42 _ = x[DwarfLangDylan-32] 43 _ = x[DwarfLangCPlusPlus14-33] 44 _ = x[DwarfLangFortran03-34] 45 _ = x[DwarfLangFortran08-35] 46 _ = x[DwarfLangRenderScript-36] 47 _ = x[DwarfLangBLISS-37] 48 _ = x[DwarfLangMipsAssembler-32769] 49 _ = x[DwarfLangGoogleRenderScript-36439] 50 _ = x[DwarfLangBorlandDelphi-45056] 51 } 52 53 const ( 54 _DwarfLang_name_0 = "DW_LANG_C89DW_LANG_CDW_LANG_Ada83DW_LANG_C_plus_plusDW_LANG_Cobol74DW_LANG_Cobol85DW_LANG_Fortran77DW_LANG_Fortran90DW_LANG_Pascal83DW_LANG_Modula2DW_LANG_JavaDW_LANG_C99DW_LANG_Ada95DW_LANG_Fortran95DW_LANG_PLIDW_LANG_ObjCDW_LANG_ObjC_plus_plusDW_LANG_UPCDW_LANG_DDW_LANG_PythonDW_LANG_OpenCLDW_LANG_GoDW_LANG_Modula3DW_LANG_HaskellDW_LANG_C_plus_plus_03DW_LANG_C_plus_plus_11DW_LANG_OCamlDW_LANG_RustDW_LANG_C11DW_LANG_SwiftDW_LANG_JuliaDW_LANG_DylanDW_LANG_C_plus_plus_14DW_LANG_Fortran03DW_LANG_Fortran08DW_LANG_RenderScriptDW_LANG_BLISS" 55 _DwarfLang_name_1 = "DW_LANG_Mips_Assembler" 56 _DwarfLang_name_2 = "DW_LANG_GOOGLE_RenderScript" 57 _DwarfLang_name_3 = "DW_LANG_BORLAND_Delphi" 58 ) 59 60 var ( 61 _DwarfLang_index_0 = [...]uint16{0, 11, 20, 33, 52, 67, 82, 99, 116, 132, 147, 159, 170, 183, 200, 211, 223, 245, 256, 265, 279, 293, 303, 318, 333, 355, 377, 390, 402, 413, 426, 439, 452, 474, 491, 508, 528, 541} 62 ) 63 64 func (i DwarfLang) String() string { 65 switch { 66 case 1 <= i && i <= 37: 67 i -= 1 68 return _DwarfLang_name_0[_DwarfLang_index_0[i]:_DwarfLang_index_0[i+1]] 69 case i == 32769: 70 return _DwarfLang_name_1 71 case i == 36439: 72 return _DwarfLang_name_2 73 case i == 45056: 74 return _DwarfLang_name_3 75 default: 76 return "DwarfLang(" + strconv.FormatInt(int64(i), 10) + ")" 77 } 78 }