• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1RUN: dsymutil -f -oso-prepend-path=%p/.. %p/../Inputs/objc.macho.x86_64 -o - \
2RUN:   | llvm-dwarfdump -apple-types -apple-objc - | FileCheck %s
3
4CHECK: .apple_types contents:
5CHECK: String: 0x00000066 "A"
6CHECK-NEXT: Data 0 [
7CHECK-NEXT:   Atom[0]: 0x0000012d
8CHECK-NEXT:   Atom[1]: 0x0013 (DW_TAG_structure_type)
9CHECK-NEXT:   Atom[2]: 0x02
10CHECK-NEXT:   Atom[3]: 0x0b87b15a
11CHECK-NEXT: ]
12
13CHECK: .apple_objc contents:
14CHECK-NEXT: Header {
15CHECK-NEXT:   Magic: 0x48415348
16CHECK-NEXT:   Version: 0x1
17CHECK-NEXT:   Hash function: 0x0
18CHECK-NEXT:   Bucket count: 2
19CHECK-NEXT:   Hashes count: 2
20CHECK-NEXT:   HeaderData length: 12
21CHECK-NEXT: }
22CHECK-NEXT: DIE offset base: 0
23CHECK-NEXT: Number of atoms: 1
24CHECK-NEXT: Atoms [
25CHECK-NEXT:   Atom 0 {
26CHECK-NEXT:     Type: DW_ATOM_die_offset
27CHECK-NEXT:     Form: DW_FORM_data4
28CHECK-NEXT:   }
29CHECK-NEXT: ]
30CHECK-NEXT: Bucket 0 [
31CHECK-NEXT:   Hash 0x2b5e6 [
32CHECK-NEXT:     Name@0x38 {
33CHECK-NEXT:       String: 0x00000066 "A"
34CHECK-NEXT:       Data 0 [
35CHECK-NEXT:         Atom[0]: 0x00000027
36CHECK-NEXT:       ]
37CHECK-NEXT:       Data 1 [
38CHECK-NEXT:         Atom[0]: 0x0000007a
39CHECK-NEXT:       ]
40CHECK-NEXT:     }
41CHECK-NEXT:   ]
42CHECK-NEXT: ]
43CHECK-NEXT: Bucket 1 [
44CHECK-NEXT:   Hash 0x3fa0f4b5 [
45CHECK-NEXT:     Name@0x4c {
46CHECK-NEXT:       String: 0x0000009d "A(Category)"
47CHECK-NEXT:       Data 0 [
48CHECK-NEXT:         Atom[0]: 0x0000007a
49CHECK-NEXT:       ]
50CHECK-NEXT:     }
51CHECK-NEXT:   ]
52CHECK-NEXT: ]
53