github.com/llir/llvm@v0.3.6/ir/enum/diflag_string.go (about) 1 // Code generated by "stringer -type DIFlag"; 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[DIFlagZero-0] 12 _ = x[DIFlagPrivate-1] 13 _ = x[DIFlagProtected-2] 14 _ = x[DIFlagPublic-3] 15 _ = x[DIFlagFwdDecl-4] 16 _ = x[DIFlagAppleBlock-8] 17 _ = x[DIFlagReservedBit4-16] 18 _ = x[DIFlagVirtual-32] 19 _ = x[DIFlagArtificial-64] 20 _ = x[DIFlagExplicit-128] 21 _ = x[DIFlagPrototyped-256] 22 _ = x[DIFlagObjcClassComplete-512] 23 _ = x[DIFlagObjectPointer-1024] 24 _ = x[DIFlagVector-2048] 25 _ = x[DIFlagStaticMember-4096] 26 _ = x[DIFlagLValueReference-8192] 27 _ = x[DIFlagRValueReference-16384] 28 _ = x[DIFlagExportSymbols-32768] 29 _ = x[DIFlagSingleInheritance-65536] 30 _ = x[DIFlagMultipleInheritance-131072] 31 _ = x[DIFlagVirtualInheritance-196608] 32 _ = x[DIFlagIntroducedVirtual-262144] 33 _ = x[DIFlagBitField-524288] 34 _ = x[DIFlagNoReturn-1048576] 35 _ = x[DIFlagTypePassByValue-4194304] 36 _ = x[DIFlagTypePassByReference-8388608] 37 _ = x[DIFlagEnumClass-16777216] 38 _ = x[DIFlagThunk-33554432] 39 _ = x[DIFlagNonTrivial-67108864] 40 _ = x[DIFlagBigEndian-134217728] 41 _ = x[DIFlagLittleEndian-268435456] 42 _ = x[DIFlagAllCallsDescribed-536870912] 43 _ = x[DIFlagIndirectVirtualBase-36] 44 _ = x[DIFlagAccessibility-3] 45 _ = x[DIFlagPtrToMemberRep-196608] 46 } 47 48 const _DIFlag_name = "DIFlagZeroDIFlagPrivateDIFlagProtectedDIFlagPublicDIFlagFwdDeclDIFlagAppleBlockDIFlagReservedBit4DIFlagVirtualDIFlagIndirectVirtualBaseDIFlagArtificialDIFlagExplicitDIFlagPrototypedDIFlagObjcClassCompleteDIFlagObjectPointerDIFlagVectorDIFlagStaticMemberDIFlagLValueReferenceDIFlagRValueReferenceDIFlagExportSymbolsDIFlagSingleInheritanceDIFlagMultipleInheritanceDIFlagVirtualInheritanceDIFlagIntroducedVirtualDIFlagBitFieldDIFlagNoReturnDIFlagTypePassByValueDIFlagTypePassByReferenceDIFlagEnumClassDIFlagThunkDIFlagNonTrivialDIFlagBigEndianDIFlagLittleEndianDIFlagAllCallsDescribed" 49 50 var _DIFlag_map = map[DIFlag]string{ 51 0: _DIFlag_name[0:10], 52 1: _DIFlag_name[10:23], 53 2: _DIFlag_name[23:38], 54 3: _DIFlag_name[38:50], 55 4: _DIFlag_name[50:63], 56 8: _DIFlag_name[63:79], 57 16: _DIFlag_name[79:97], 58 32: _DIFlag_name[97:110], 59 36: _DIFlag_name[110:135], 60 64: _DIFlag_name[135:151], 61 128: _DIFlag_name[151:165], 62 256: _DIFlag_name[165:181], 63 512: _DIFlag_name[181:204], 64 1024: _DIFlag_name[204:223], 65 2048: _DIFlag_name[223:235], 66 4096: _DIFlag_name[235:253], 67 8192: _DIFlag_name[253:274], 68 16384: _DIFlag_name[274:295], 69 32768: _DIFlag_name[295:314], 70 65536: _DIFlag_name[314:337], 71 131072: _DIFlag_name[337:362], 72 196608: _DIFlag_name[362:386], 73 262144: _DIFlag_name[386:409], 74 524288: _DIFlag_name[409:423], 75 1048576: _DIFlag_name[423:437], 76 4194304: _DIFlag_name[437:458], 77 8388608: _DIFlag_name[458:483], 78 16777216: _DIFlag_name[483:498], 79 33554432: _DIFlag_name[498:509], 80 67108864: _DIFlag_name[509:525], 81 134217728: _DIFlag_name[525:540], 82 268435456: _DIFlag_name[540:558], 83 536870912: _DIFlag_name[558:581], 84 } 85 86 func (i DIFlag) String() string { 87 if str, ok := _DIFlag_map[i]; ok { 88 return str 89 } 90 return "DIFlag(" + strconv.FormatInt(int64(i), 10) + ")" 91 }