github.com/llir/llvm@v0.3.6/asm/enum/dwarftag_string2enum.go (about) 1 // Code generated by "string2enum -linecomment -type DwarfTag ../../ir/enum"; DO NOT EDIT. 2 3 package enum 4 5 import ( 6 "fmt" 7 8 "github.com/llir/llvm/ir/enum" 9 ) 10 11 func _() { 12 // An "invalid array index" compiler error signifies that the constant values have changed. 13 // Re-run the string2enum command to generate them again. 14 var x [1]struct{} 15 _ = x[enum.DwarfTagNull-0] 16 _ = x[enum.DwarfTagArrayType-1] 17 _ = x[enum.DwarfTagClassType-2] 18 _ = x[enum.DwarfTagEntryPoint-3] 19 _ = x[enum.DwarfTagEnumerationType-4] 20 _ = x[enum.DwarfTagFormalParameter-5] 21 _ = x[enum.DwarfTagImportedDeclaration-8] 22 _ = x[enum.DwarfTagLabel-10] 23 _ = x[enum.DwarfTagLexicalBlock-11] 24 _ = x[enum.DwarfTagMember-13] 25 _ = x[enum.DwarfTagPointerType-15] 26 _ = x[enum.DwarfTagReferenceType-16] 27 _ = x[enum.DwarfTagCompileUnit-17] 28 _ = x[enum.DwarfTagStringType-18] 29 _ = x[enum.DwarfTagStructureType-19] 30 _ = x[enum.DwarfTagSubroutineType-21] 31 _ = x[enum.DwarfTagTypedef-22] 32 _ = x[enum.DwarfTagUnionType-23] 33 _ = x[enum.DwarfTagUnspecifiedParameters-24] 34 _ = x[enum.DwarfTagVariant-25] 35 _ = x[enum.DwarfTagCommonBlock-26] 36 _ = x[enum.DwarfTagCommonInclusion-27] 37 _ = x[enum.DwarfTagInheritance-28] 38 _ = x[enum.DwarfTagInlinedSubroutine-29] 39 _ = x[enum.DwarfTagModule-30] 40 _ = x[enum.DwarfTagPtrToMemberType-31] 41 _ = x[enum.DwarfTagSetType-32] 42 _ = x[enum.DwarfTagSubrangeType-33] 43 _ = x[enum.DwarfTagWithStmt-34] 44 _ = x[enum.DwarfTagAccessDeclaration-35] 45 _ = x[enum.DwarfTagBaseType-36] 46 _ = x[enum.DwarfTagCatchBlock-37] 47 _ = x[enum.DwarfTagConstType-38] 48 _ = x[enum.DwarfTagConstant-39] 49 _ = x[enum.DwarfTagEnumerator-40] 50 _ = x[enum.DwarfTagFileType-41] 51 _ = x[enum.DwarfTagFriend-42] 52 _ = x[enum.DwarfTagNamelist-43] 53 _ = x[enum.DwarfTagNamelistItem-44] 54 _ = x[enum.DwarfTagPackedType-45] 55 _ = x[enum.DwarfTagSubprogram-46] 56 _ = x[enum.DwarfTagTemplateTypeParameter-47] 57 _ = x[enum.DwarfTagTemplateValueParameter-48] 58 _ = x[enum.DwarfTagThrownType-49] 59 _ = x[enum.DwarfTagTryBlock-50] 60 _ = x[enum.DwarfTagVariantPart-51] 61 _ = x[enum.DwarfTagVariable-52] 62 _ = x[enum.DwarfTagVolatileType-53] 63 _ = x[enum.DwarfTagDwarfProcedure-54] 64 _ = x[enum.DwarfTagRestrictType-55] 65 _ = x[enum.DwarfTagInterfaceType-56] 66 _ = x[enum.DwarfTagNamespace-57] 67 _ = x[enum.DwarfTagImportedModule-58] 68 _ = x[enum.DwarfTagUnspecifiedType-59] 69 _ = x[enum.DwarfTagPartialUnit-60] 70 _ = x[enum.DwarfTagImportedUnit-61] 71 _ = x[enum.DwarfTagCondition-63] 72 _ = x[enum.DwarfTagSharedType-64] 73 _ = x[enum.DwarfTagTypeUnit-65] 74 _ = x[enum.DwarfTagRvalueReferenceType-66] 75 _ = x[enum.DwarfTagTemplateAlias-67] 76 _ = x[enum.DwarfTagCoarrayType-68] 77 _ = x[enum.DwarfTagGenericSubrange-69] 78 _ = x[enum.DwarfTagDynamicType-70] 79 _ = x[enum.DwarfTagAtomicType-71] 80 _ = x[enum.DwarfTagCallSite-72] 81 _ = x[enum.DwarfTagCallSiteParameter-73] 82 _ = x[enum.DwarfTagSkeletonUnit-74] 83 _ = x[enum.DwarfTagImmutableType-75] 84 _ = x[enum.DwarfTagMIPSLoop-16513] 85 _ = x[enum.DwarfTagFormatLabel-16641] 86 _ = x[enum.DwarfTagFunctionTemplate-16642] 87 _ = x[enum.DwarfTagClassTemplate-16643] 88 _ = x[enum.DwarfTagGNUTemplateTemplateParam-16646] 89 _ = x[enum.DwarfTagGNUTemplateParameterPack-16647] 90 _ = x[enum.DwarfTagGNUFormalParameterPack-16648] 91 _ = x[enum.DwarfTagGNUCallSite-16649] 92 _ = x[enum.DwarfTagGNUCallSiteParameter-16650] 93 _ = x[enum.DwarfTagAPPLEProperty-16896] 94 _ = x[enum.DwarfTagBORLANDProperty-45056] 95 _ = x[enum.DwarfTagBORLANDDelphiString-45057] 96 _ = x[enum.DwarfTagBORLANDDelphiDynamicArray-45058] 97 _ = x[enum.DwarfTagBORLANDDelphiSet-45059] 98 _ = x[enum.DwarfTagBORLANDDelphiVariant-45060] 99 } 100 101 const _DwarfTag_name = "DW_TAG_nullDW_TAG_array_typeDW_TAG_class_typeDW_TAG_entry_pointDW_TAG_enumeration_typeDW_TAG_formal_parameterDW_TAG_imported_declarationDW_TAG_labelDW_TAG_lexical_blockDW_TAG_memberDW_TAG_pointer_typeDW_TAG_reference_typeDW_TAG_compile_unitDW_TAG_string_typeDW_TAG_structure_typeDW_TAG_subroutine_typeDW_TAG_typedefDW_TAG_union_typeDW_TAG_unspecified_parametersDW_TAG_variantDW_TAG_common_blockDW_TAG_common_inclusionDW_TAG_inheritanceDW_TAG_inlined_subroutineDW_TAG_moduleDW_TAG_ptr_to_member_typeDW_TAG_set_typeDW_TAG_subrange_typeDW_TAG_with_stmtDW_TAG_access_declarationDW_TAG_base_typeDW_TAG_catch_blockDW_TAG_const_typeDW_TAG_constantDW_TAG_enumeratorDW_TAG_file_typeDW_TAG_friendDW_TAG_namelistDW_TAG_namelist_itemDW_TAG_packed_typeDW_TAG_subprogramDW_TAG_template_type_parameterDW_TAG_template_value_parameterDW_TAG_thrown_typeDW_TAG_try_blockDW_TAG_variant_partDW_TAG_variableDW_TAG_volatile_typeDW_TAG_dwarf_procedureDW_TAG_restrict_typeDW_TAG_interface_typeDW_TAG_namespaceDW_TAG_imported_moduleDW_TAG_unspecified_typeDW_TAG_partial_unitDW_TAG_imported_unitDW_TAG_conditionDW_TAG_shared_typeDW_TAG_type_unitDW_TAG_rvalue_reference_typeDW_TAG_template_aliasDW_TAG_coarray_typeDW_TAG_generic_subrangeDW_TAG_dynamic_typeDW_TAG_atomic_typeDW_TAG_call_siteDW_TAG_call_site_parameterDW_TAG_skeleton_unitDW_TAG_immutable_typeDW_TAG_MIPS_loopDW_TAG_format_labelDW_TAG_function_templateDW_TAG_class_templateDW_TAG_GNU_template_template_paramDW_TAG_GNU_template_parameter_packDW_TAG_GNU_formal_parameter_packDW_TAG_GNU_call_siteDW_TAG_GNU_call_site_parameterDW_TAG_APPLE_propertyDW_TAG_BORLAND_propertyDW_TAG_BORLAND_Delphi_stringDW_TAG_BORLAND_Delphi_dynamic_arrayDW_TAG_BORLAND_Delphi_setDW_TAG_BORLAND_Delphi_variant" 102 103 var _DwarfTag_map = map[enum.DwarfTag]string{ 104 0: _DwarfTag_name[0:11], 105 1: _DwarfTag_name[11:28], 106 2: _DwarfTag_name[28:45], 107 3: _DwarfTag_name[45:63], 108 4: _DwarfTag_name[63:86], 109 5: _DwarfTag_name[86:109], 110 8: _DwarfTag_name[109:136], 111 10: _DwarfTag_name[136:148], 112 11: _DwarfTag_name[148:168], 113 13: _DwarfTag_name[168:181], 114 15: _DwarfTag_name[181:200], 115 16: _DwarfTag_name[200:221], 116 17: _DwarfTag_name[221:240], 117 18: _DwarfTag_name[240:258], 118 19: _DwarfTag_name[258:279], 119 21: _DwarfTag_name[279:301], 120 22: _DwarfTag_name[301:315], 121 23: _DwarfTag_name[315:332], 122 24: _DwarfTag_name[332:361], 123 25: _DwarfTag_name[361:375], 124 26: _DwarfTag_name[375:394], 125 27: _DwarfTag_name[394:417], 126 28: _DwarfTag_name[417:435], 127 29: _DwarfTag_name[435:460], 128 30: _DwarfTag_name[460:473], 129 31: _DwarfTag_name[473:498], 130 32: _DwarfTag_name[498:513], 131 33: _DwarfTag_name[513:533], 132 34: _DwarfTag_name[533:549], 133 35: _DwarfTag_name[549:574], 134 36: _DwarfTag_name[574:590], 135 37: _DwarfTag_name[590:608], 136 38: _DwarfTag_name[608:625], 137 39: _DwarfTag_name[625:640], 138 40: _DwarfTag_name[640:657], 139 41: _DwarfTag_name[657:673], 140 42: _DwarfTag_name[673:686], 141 43: _DwarfTag_name[686:701], 142 44: _DwarfTag_name[701:721], 143 45: _DwarfTag_name[721:739], 144 46: _DwarfTag_name[739:756], 145 47: _DwarfTag_name[756:786], 146 48: _DwarfTag_name[786:817], 147 49: _DwarfTag_name[817:835], 148 50: _DwarfTag_name[835:851], 149 51: _DwarfTag_name[851:870], 150 52: _DwarfTag_name[870:885], 151 53: _DwarfTag_name[885:905], 152 54: _DwarfTag_name[905:927], 153 55: _DwarfTag_name[927:947], 154 56: _DwarfTag_name[947:968], 155 57: _DwarfTag_name[968:984], 156 58: _DwarfTag_name[984:1006], 157 59: _DwarfTag_name[1006:1029], 158 60: _DwarfTag_name[1029:1048], 159 61: _DwarfTag_name[1048:1068], 160 63: _DwarfTag_name[1068:1084], 161 64: _DwarfTag_name[1084:1102], 162 65: _DwarfTag_name[1102:1118], 163 66: _DwarfTag_name[1118:1146], 164 67: _DwarfTag_name[1146:1167], 165 68: _DwarfTag_name[1167:1186], 166 69: _DwarfTag_name[1186:1209], 167 70: _DwarfTag_name[1209:1228], 168 71: _DwarfTag_name[1228:1246], 169 72: _DwarfTag_name[1246:1262], 170 73: _DwarfTag_name[1262:1288], 171 74: _DwarfTag_name[1288:1308], 172 75: _DwarfTag_name[1308:1329], 173 16513: _DwarfTag_name[1329:1345], 174 16641: _DwarfTag_name[1345:1364], 175 16642: _DwarfTag_name[1364:1388], 176 16643: _DwarfTag_name[1388:1409], 177 16646: _DwarfTag_name[1409:1443], 178 16647: _DwarfTag_name[1443:1477], 179 16648: _DwarfTag_name[1477:1509], 180 16649: _DwarfTag_name[1509:1529], 181 16650: _DwarfTag_name[1529:1559], 182 16896: _DwarfTag_name[1559:1580], 183 45056: _DwarfTag_name[1580:1603], 184 45057: _DwarfTag_name[1603:1631], 185 45058: _DwarfTag_name[1631:1666], 186 45059: _DwarfTag_name[1666:1691], 187 45060: _DwarfTag_name[1691:1720], 188 } 189 190 // DwarfTagFromString returns the DwarfTag enum corresponding to s. 191 func DwarfTagFromString(s string) enum.DwarfTag { 192 for key, val := range _DwarfTag_map { 193 if s == val { 194 return key 195 } 196 } 197 panic(fmt.Errorf("unable to locate DwarfTag enum corresponding to %q", s)) 198 } 199 200 func _(s string) { 201 // Check for duplicate string values in type "DwarfTag". 202 switch s { 203 // 0 204 case "DW_TAG_null": 205 // 1 206 case "DW_TAG_array_type": 207 // 2 208 case "DW_TAG_class_type": 209 // 3 210 case "DW_TAG_entry_point": 211 // 4 212 case "DW_TAG_enumeration_type": 213 // 5 214 case "DW_TAG_formal_parameter": 215 // 8 216 case "DW_TAG_imported_declaration": 217 // 10 218 case "DW_TAG_label": 219 // 11 220 case "DW_TAG_lexical_block": 221 // 13 222 case "DW_TAG_member": 223 // 15 224 case "DW_TAG_pointer_type": 225 // 16 226 case "DW_TAG_reference_type": 227 // 17 228 case "DW_TAG_compile_unit": 229 // 18 230 case "DW_TAG_string_type": 231 // 19 232 case "DW_TAG_structure_type": 233 // 21 234 case "DW_TAG_subroutine_type": 235 // 22 236 case "DW_TAG_typedef": 237 // 23 238 case "DW_TAG_union_type": 239 // 24 240 case "DW_TAG_unspecified_parameters": 241 // 25 242 case "DW_TAG_variant": 243 // 26 244 case "DW_TAG_common_block": 245 // 27 246 case "DW_TAG_common_inclusion": 247 // 28 248 case "DW_TAG_inheritance": 249 // 29 250 case "DW_TAG_inlined_subroutine": 251 // 30 252 case "DW_TAG_module": 253 // 31 254 case "DW_TAG_ptr_to_member_type": 255 // 32 256 case "DW_TAG_set_type": 257 // 33 258 case "DW_TAG_subrange_type": 259 // 34 260 case "DW_TAG_with_stmt": 261 // 35 262 case "DW_TAG_access_declaration": 263 // 36 264 case "DW_TAG_base_type": 265 // 37 266 case "DW_TAG_catch_block": 267 // 38 268 case "DW_TAG_const_type": 269 // 39 270 case "DW_TAG_constant": 271 // 40 272 case "DW_TAG_enumerator": 273 // 41 274 case "DW_TAG_file_type": 275 // 42 276 case "DW_TAG_friend": 277 // 43 278 case "DW_TAG_namelist": 279 // 44 280 case "DW_TAG_namelist_item": 281 // 45 282 case "DW_TAG_packed_type": 283 // 46 284 case "DW_TAG_subprogram": 285 // 47 286 case "DW_TAG_template_type_parameter": 287 // 48 288 case "DW_TAG_template_value_parameter": 289 // 49 290 case "DW_TAG_thrown_type": 291 // 50 292 case "DW_TAG_try_block": 293 // 51 294 case "DW_TAG_variant_part": 295 // 52 296 case "DW_TAG_variable": 297 // 53 298 case "DW_TAG_volatile_type": 299 // 54 300 case "DW_TAG_dwarf_procedure": 301 // 55 302 case "DW_TAG_restrict_type": 303 // 56 304 case "DW_TAG_interface_type": 305 // 57 306 case "DW_TAG_namespace": 307 // 58 308 case "DW_TAG_imported_module": 309 // 59 310 case "DW_TAG_unspecified_type": 311 // 60 312 case "DW_TAG_partial_unit": 313 // 61 314 case "DW_TAG_imported_unit": 315 // 63 316 case "DW_TAG_condition": 317 // 64 318 case "DW_TAG_shared_type": 319 // 65 320 case "DW_TAG_type_unit": 321 // 66 322 case "DW_TAG_rvalue_reference_type": 323 // 67 324 case "DW_TAG_template_alias": 325 // 68 326 case "DW_TAG_coarray_type": 327 // 69 328 case "DW_TAG_generic_subrange": 329 // 70 330 case "DW_TAG_dynamic_type": 331 // 71 332 case "DW_TAG_atomic_type": 333 // 72 334 case "DW_TAG_call_site": 335 // 73 336 case "DW_TAG_call_site_parameter": 337 // 74 338 case "DW_TAG_skeleton_unit": 339 // 75 340 case "DW_TAG_immutable_type": 341 // 16513 342 case "DW_TAG_MIPS_loop": 343 // 16641 344 case "DW_TAG_format_label": 345 // 16642 346 case "DW_TAG_function_template": 347 // 16643 348 case "DW_TAG_class_template": 349 // 16646 350 case "DW_TAG_GNU_template_template_param": 351 // 16647 352 case "DW_TAG_GNU_template_parameter_pack": 353 // 16648 354 case "DW_TAG_GNU_formal_parameter_pack": 355 // 16649 356 case "DW_TAG_GNU_call_site": 357 // 16650 358 case "DW_TAG_GNU_call_site_parameter": 359 // 16896 360 case "DW_TAG_APPLE_property": 361 // 45056 362 case "DW_TAG_BORLAND_property": 363 // 45057 364 case "DW_TAG_BORLAND_Delphi_string": 365 // 45058 366 case "DW_TAG_BORLAND_Delphi_dynamic_array": 367 // 45059 368 case "DW_TAG_BORLAND_Delphi_set": 369 // 45060 370 case "DW_TAG_BORLAND_Delphi_variant": 371 } 372 }