brintos

brintos / llvm-project-archived public Read only

0
0
Text · 6.4 KiB · 1ee7929 Raw
95 lines · plain
1; UNSUPPORTED:  target={{.*}}-aix{{.*}}2;3; RUN: llc -filetype=obj -o - %s | llvm-dwarfdump --debug-info - | FileCheck %s4 5; CHECK: DW_TAG_structure_type6; CHECK:   DW_AT_name ("Foo")7;8; CHECK:   0x[[AUTO_SYNTH:[0-9a-f]+]]: DW_TAG_APPLE_property9; CHECK:     DW_AT_APPLE_property_name ("autoSynthProp")10; CHECK:     DW_AT_APPLE_property_attribute11; CHECK-SAME: DW_APPLE_PROPERTY_assign, DW_APPLE_PROPERTY_readwrite,12; CHECK-SAME: DW_APPLE_PROPERTY_atomic, DW_APPLE_PROPERTY_unsafe_unretained13;14; CHECK:   0x[[SYNTH:[0-9a-f]+]]: DW_TAG_APPLE_property15; CHECK:     DW_AT_APPLE_property_name ("synthProp")16; CHECK:     DW_AT_APPLE_property_attribute17; CHECK-SAME: DW_APPLE_PROPERTY_assign, DW_APPLE_PROPERTY_readwrite,18; CHECK-SAME: DW_APPLE_PROPERTY_atomic, DW_APPLE_PROPERTY_unsafe_unretained19;20; CHECK:   0x[[GET:[0-9a-f]+]]: DW_TAG_APPLE_property21; CHECK:     DW_AT_APPLE_property_name ("customGetterProp")22; CHECK:     DW_AT_APPLE_property_getter   ("customGetter")23; CHECK:     DW_AT_APPLE_property_attribute24; CHECK-SAME: DW_APPLE_PROPERTY_getter, DW_APPLE_PROPERTY_assign, DW_APPLE_PROPERTY_readwrite,25; CHECK-SAME: DW_APPLE_PROPERTY_atomic, DW_APPLE_PROPERTY_unsafe_unretained26;27; CHECK:   0x[[SET:[0-9a-f]+]]: DW_TAG_APPLE_property28; CHECK:     DW_AT_APPLE_property_name ("customSetterProp")29; CHECK:     DW_AT_APPLE_property_setter   ("customSetter:")30; CHECK:     DW_AT_APPLE_property_attribute31; CHECK-SAME: DW_APPLE_PROPERTY_assign, DW_APPLE_PROPERTY_readwrite,32; CHECK-SAME: DW_APPLE_PROPERTY_setter, DW_APPLE_PROPERTY_atomic, DW_APPLE_PROPERTY_unsafe_unretained33;34; CHECK:   0x[[ACCESSORS:[0-9a-f]+]]: DW_TAG_APPLE_property35; CHECK:     DW_AT_APPLE_property_name ("customAccessorsProp")36; CHECK:     DW_AT_APPLE_property_getter   ("customGetter")37; CHECK:     DW_AT_APPLE_property_setter   ("customSetter:")38; CHECK:     DW_AT_APPLE_property_attribute39; CHECK-SAME: DW_APPLE_PROPERTY_getter, DW_APPLE_PROPERTY_assign, DW_APPLE_PROPERTY_readwrite,40; CHECK-SAME: DW_APPLE_PROPERTY_setter, DW_APPLE_PROPERTY_atomic, DW_APPLE_PROPERTY_unsafe_unretained41;42; CHECK:   DW_TAG_member43; CHECK:     DW_AT_name ("someBackingIvar")44; CHECK:     DW_AT_APPLE_property (0x[[SYNTH]] "synthProp")45;46; CHECK:   DW_TAG_member47; CHECK:     DW_AT_name ("_autoSynthProp")48; CHECK:     DW_AT_APPLE_property (0x[[AUTO_SYNTH]] "autoSynthProp")49;50; CHECK:   DW_TAG_member51; CHECK:     DW_AT_name ("_customGetterProp")52; CHECK:     DW_AT_APPLE_property (0x[[GET]] "customGetterProp")53;54; CHECK:   DW_TAG_member55; CHECK:     DW_AT_name ("_customSetterProp")56; CHECK:     DW_AT_APPLE_property (0x[[SET]] "customSetterProp")57 58!llvm.module.flags = !{!0, !1}59!llvm.dbg.cu = !{!2}60 61!0 = !{i32 7, !"Dwarf Version", i32 5}62!1 = !{i32 2, !"Debug Info Version", i32 3}63!2 = distinct !DICompileUnit(language: DW_LANG_ObjC, file: !3, producer: "hand written", isOptimized: false, runtimeVersion: 2, emissionKind: FullDebug, retainedTypes: !4, splitDebugInlining: false, debugInfoForProfiling: true, nameTableKind: Apple)64!3 = !DIFile(filename: "main.m", directory: "/tmp")65!4 = !{!5}66!5 = !DICompositeType(tag: DW_TAG_structure_type, name: "Foo", scope: !3, file: !3, line: 1, size: 128, flags: DIFlagObjcClassComplete, elements: !6, runtimeLang: DW_LANG_ObjC)67!6 = !{!7, !9, !10, !11, !12, !13, !14, !15, !16, !17, !24, !27, !28, !29, !30, !31, !32}68!7 = !DIObjCProperty(name: "autoSynthProp", file: !3, line: 5, attributes: 2316, type: !8)69!8 = !DIBasicType(name: "int", size: 32, encoding: DW_ATE_signed)70!9 = !DIObjCProperty(name: "synthProp", file: !3, line: 6, attributes: 2316, type: !8)71!10 = !DIObjCProperty(name: "customGetterProp", file: !3, line: 7, getter: "customGetter", attributes: 2318, type: !8)72!11 = !DIObjCProperty(name: "customSetterProp", file: !3, line: 8, setter: "customSetter:", attributes: 2444, type: !8)73!12 = !DIObjCProperty(name: "customAccessorsProp", file: !3, line: 9, setter: "customSetter:", getter: "customGetter", attributes: 2446, type: !8)74!13 = !DIDerivedType(tag: DW_TAG_member, name: "someBackingIvar", scope: !3, file: !3, line: 2, baseType: !8, size: 32, flags: DIFlagProtected, extraData: !9)75!14 = !DIDerivedType(tag: DW_TAG_member, name: "_autoSynthProp", scope: !3, file: !3, line: 5, baseType: !8, size: 32, flags: DIFlagPrivate, extraData: !7)76!15 = !DIDerivedType(tag: DW_TAG_member, name: "_customGetterProp", scope: !3, file: !3, line: 7, baseType: !8, size: 32, flags: DIFlagPrivate, extraData: !10)77!16 = !DIDerivedType(tag: DW_TAG_member, name: "_customSetterProp", scope: !3, file: !3, line: 8, baseType: !8, size: 32, flags: DIFlagPrivate, extraData: !11)78!17 = !DISubprogram(name: "-[Foo customGetter]", scope: !5, file: !3, line: 19, type: !18, scopeLine: 19, flags: DIFlagPrototyped, spFlags: DISPFlagLocalToUnit)79!18 = !DISubroutineType(types: !19)80!19 = !{!8, !20, !21}81!20 = !DIDerivedType(tag: DW_TAG_pointer_type, baseType: !5, size: 64, flags: DIFlagArtificial | DIFlagObjectPointer)82!21 = !DIDerivedType(tag: DW_TAG_typedef, name: "SEL", file: !3, baseType: !22, flags: DIFlagArtificial)83!22 = !DIDerivedType(tag: DW_TAG_pointer_type, baseType: !23, size: 64)84!23 = !DICompositeType(tag: DW_TAG_structure_type, name: "objc_selector", file: !3, flags: DIFlagFwdDecl)85!24 = !DISubprogram(name: "-[Foo customSetter:]", scope: !5, file: !3, line: 23, type: !25, scopeLine: 23, flags: DIFlagPrototyped, spFlags: DISPFlagLocalToUnit)86!25 = !DISubroutineType(types: !26)87!26 = !{null, !20, !21, !8}88!27 = !DISubprogram(name: "-[Foo synthProp]", scope: !5, file: !3, line: 17, type: !18, scopeLine: 17, flags: DIFlagArtificial | DIFlagPrototyped, spFlags: DISPFlagLocalToUnit)89!28 = !DISubprogram(name: "-[Foo setSynthProp:]", scope: !5, file: !3, line: 17, type: !25, scopeLine: 17, flags: DIFlagArtificial | DIFlagPrototyped, spFlags: DISPFlagLocalToUnit)90!29 = !DISubprogram(name: "-[Foo autoSynthProp]", scope: !5, file: !3, line: 5, type: !18, scopeLine: 5, flags: DIFlagArtificial | DIFlagPrototyped, spFlags: DISPFlagLocalToUnit)91!30 = !DISubprogram(name: "-[Foo setAutoSynthProp:]", scope: !5, file: !3, line: 5, type: !25, scopeLine: 5, flags: DIFlagArtificial | DIFlagPrototyped, spFlags: DISPFlagLocalToUnit)92!31 = !DISubprogram(name: "-[Foo setCustomGetterProp:]", scope: !5, file: !3, line: 7, type: !25, scopeLine: 7, flags: DIFlagArtificial | DIFlagPrototyped, spFlags: DISPFlagLocalToUnit)93!32 = !DISubprogram(name: "-[Foo customSetterProp]", scope: !5, file: !3, line: 8, type: !18, scopeLine: 8, flags: DIFlagArtificial | DIFlagPrototyped, spFlags: DISPFlagLocalToUnit)94 95