1 RUN: dsymutil --verify-dwarf=output -f -oso-prepend-path=%p/.. %p/../Inputs/objc.macho.x86_64 -o %t.d4
2 RUN: llvm-dwarfdump -apple-types -apple-objc %t.d4 | FileCheck %s
5 RUN: dsymutil --verify-dwarf=output --accelerator='Dwarf' -f -oso-prepend-path=%p/.. %p/../Inputs/objc.macho.x86_64 -o %t.d5
6 RUN: llvm-dwarfdump -debug-names %t.d5 | FileCheck %s --check-prefix=D5
8 D5: String: {{.*}} "method1:"
9 D5: String: {{.*}} "method2:"
10 D5: String: {{.*}} "A"
11 D5: String: {{.*}} "-[A(Category) method2:]"
12 D5: String: {{.*}} "-[A method1:]"
13 D5: String: {{.*}} "-[Amethod2:]"
15 CHECK: .apple_types contents:
16 CHECK: String: 0x00000066 "A"
18 CHECK-NEXT: Atom[0]: 0x0000012d
19 CHECK-NEXT: Atom[1]: 0x0013 (DW_TAG_structure_type)
20 CHECK-NEXT: Atom[2]: 0x02
21 CHECK-NEXT: Atom[3]: 0x0b87b15a
24 CHECK: .apple_objc contents:
26 CHECK-NEXT: Magic: 0x48415348
27 CHECK-NEXT: Version: 0x1
28 CHECK-NEXT: Hash function: 0x0
29 CHECK-NEXT: Bucket count: 2
30 CHECK-NEXT: Hashes count: 2
31 CHECK-NEXT: HeaderData length: 12
33 CHECK-NEXT: DIE offset base: 0
34 CHECK-NEXT: Number of atoms: 1
35 CHECK-NEXT: Size of each hash data entry: 4
38 CHECK-NEXT: Type: DW_ATOM_die_offset
39 CHECK-NEXT: Form: DW_FORM_data4
42 CHECK-NEXT: Bucket 0 [
43 CHECK-NEXT: Hash 0x2b5e6 [
44 CHECK-NEXT: Name@0x38 {
45 CHECK-NEXT: String: 0x00000066 "A"
47 CHECK-NEXT: Atom[0]: 0x00000027
50 CHECK-NEXT: Atom[0]: 0x0000007a
55 CHECK-NEXT: Bucket 1 [
56 CHECK-NEXT: Hash 0x3fa0f4b5 [
57 CHECK-NEXT: Name@0x4c {
58 CHECK-NEXT: String: 0x0000009d "A(Category)"
60 CHECK-NEXT: Atom[0]: 0x0000007a