mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-25 12:12:47 +01:00
0973b9cea7
This adds Clang-specific DWARF constants for nullability and ObjC class properties that are already generated by clang. This patch adds dwarfdump support and a more comprehensive testcase. <rdar://problem/27335745> llvm-svn: 275354
76 lines
3.4 KiB
Plaintext
76 lines
3.4 KiB
Plaintext
RUN: llvm-dwarfdump %p/Inputs/dwarfdump-objc.x86_64.o | FileCheck %s
|
|
|
|
CHECK: .debug_info contents:
|
|
|
|
CHECK: DW_TAG_APPLE_property
|
|
CHECK-NOT: TAG
|
|
CHECK: DW_AT_APPLE_property_name {{.*}} "ReadOnly"
|
|
CHECK-NOT: TAG
|
|
CHECK: DW_AT_APPLE_property_attribute {{.*}} (0x0101 (DW_APPLE_PROPERTY_readonly, DW_APPLE_PROPERTY_atomic))
|
|
|
|
CHECK: DW_TAG_APPLE_property
|
|
CHECK-NOT: TAG
|
|
CHECK: DW_AT_APPLE_property_name {{.*}} "Assign"
|
|
CHECK-NOT: TAG
|
|
CHECK: DW_AT_APPLE_property_attribute {{.*}} (0x090c (DW_APPLE_PROPERTY_assign, DW_APPLE_PROPERTY_readwrite, DW_APPLE_PROPERTY_atomic, DW_APPLE_PROPERTY_unsafe_unretained))
|
|
|
|
CHECK: DW_TAG_APPLE_property
|
|
CHECK-NOT: TAG
|
|
CHECK: DW_AT_APPLE_property_name {{.*}} "ReadWrite"
|
|
CHECK-NOT: TAG
|
|
CHECK: DW_AT_APPLE_property_attribute {{.*}} (0x090c (DW_APPLE_PROPERTY_assign, DW_APPLE_PROPERTY_readwrite, DW_APPLE_PROPERTY_atomic, DW_APPLE_PROPERTY_unsafe_unretained))
|
|
|
|
CHECK: DW_TAG_APPLE_property
|
|
CHECK-NOT: TAG
|
|
CHECK: DW_AT_APPLE_property_name {{.*}} "Retain"
|
|
CHECK-NOT: TAG
|
|
CHECK: DW_AT_APPLE_property_attribute {{.*}} (0x0118 (DW_APPLE_PROPERTY_readwrite, DW_APPLE_PROPERTY_retain, DW_APPLE_PROPERTY_atomic))
|
|
|
|
CHECK: DW_TAG_APPLE_property
|
|
CHECK-NOT: TAG
|
|
CHECK: DW_AT_APPLE_property_name {{.*}} "Copy"
|
|
CHECK-NOT: TAG
|
|
CHECK: DW_AT_APPLE_property_attribute {{.*}} (0x0128 (DW_APPLE_PROPERTY_readwrite, DW_APPLE_PROPERTY_copy, DW_APPLE_PROPERTY_atomic))
|
|
|
|
CHECK: DW_TAG_APPLE_property
|
|
CHECK-NOT: TAG
|
|
CHECK: DW_AT_APPLE_property_name {{.*}} "NonAtomic"
|
|
CHECK-NOT: TAG
|
|
CHECK: DW_AT_APPLE_property_attribute {{.*}} (0x084c (DW_APPLE_PROPERTY_assign, DW_APPLE_PROPERTY_readwrite, DW_APPLE_PROPERTY_nonatomic, DW_APPLE_PROPERTY_unsafe_unretained))
|
|
|
|
CHECK: DW_TAG_APPLE_property
|
|
CHECK-NOT: TAG
|
|
CHECK: DW_AT_APPLE_property_name {{.*}} "Atomic"
|
|
CHECK-NOT: TAG
|
|
CHECK: DW_AT_APPLE_property_attribute {{.*}} (0x090c (DW_APPLE_PROPERTY_assign, DW_APPLE_PROPERTY_readwrite, DW_APPLE_PROPERTY_atomic, DW_APPLE_PROPERTY_unsafe_unretained))
|
|
|
|
CHECK: DW_TAG_APPLE_property
|
|
CHECK-NOT: TAG
|
|
CHECK: DW_AT_APPLE_property_name {{.*}} "Strong"
|
|
CHECK-NOT: TAG
|
|
CHECK: DW_AT_APPLE_property_attribute {{.*}} (0x0508 (DW_APPLE_PROPERTY_readwrite, DW_APPLE_PROPERTY_atomic, DW_APPLE_PROPERTY_strong))
|
|
|
|
CHECK: DW_TAG_APPLE_property
|
|
CHECK-NOT: TAG
|
|
CHECK: DW_AT_APPLE_property_name {{.*}} "UnsafeUnretained"
|
|
CHECK-NOT: TAG
|
|
CHECK: DW_AT_APPLE_property_attribute {{.*}} (0x090c (DW_APPLE_PROPERTY_assign, DW_APPLE_PROPERTY_readwrite, DW_APPLE_PROPERTY_atomic, DW_APPLE_PROPERTY_unsafe_unretained))
|
|
|
|
CHECK: DW_TAG_APPLE_property
|
|
CHECK-NOT: TAG
|
|
CHECK: DW_AT_APPLE_property_name {{.*}} "Nullability"
|
|
CHECK-NOT: TAG
|
|
CHECK: DW_AT_APPLE_property_attribute {{.*}} (0x190c (DW_APPLE_PROPERTY_assign, DW_APPLE_PROPERTY_readwrite, DW_APPLE_PROPERTY_atomic, DW_APPLE_PROPERTY_unsafe_unretained, DW_APPLE_PROPERTY_nullability))
|
|
|
|
CHECK: DW_TAG_APPLE_property
|
|
CHECK-NOT: TAG
|
|
CHECK: DW_AT_APPLE_property_name {{.*}} "NullResettable"
|
|
CHECK-NOT: TAG
|
|
CHECK: DW_AT_APPLE_property_attribute {{.*}} (0x390c (DW_APPLE_PROPERTY_assign, DW_APPLE_PROPERTY_readwrite, DW_APPLE_PROPERTY_atomic, DW_APPLE_PROPERTY_unsafe_unretained, DW_APPLE_PROPERTY_nullability, DW_APPLE_PROPERTY_null_resettable))
|
|
|
|
CHECK: DW_TAG_APPLE_property
|
|
CHECK-NOT: TAG
|
|
CHECK: DW_AT_APPLE_property_name {{.*}} "ClassProperty"
|
|
CHECK-NOT: TAG
|
|
CHECK: DW_AT_APPLE_property_attribute {{.*}} (0x490c (DW_APPLE_PROPERTY_assign, DW_APPLE_PROPERTY_readwrite, DW_APPLE_PROPERTY_atomic, DW_APPLE_PROPERTY_unsafe_unretained, DW_APPLE_PROPERTY_class))
|