1 RUN: dsymutil -accelerator=Dwarf -oso-prepend-path=%p/../Inputs %p/../Inputs/accel-imported-declaration.macho-arm64 -o %t.dwarf.dSYM
2 RUN: dsymutil -accelerator=Apple -oso-prepend-path=%p/../Inputs %p/../Inputs/accel-imported-declaration.macho-arm64 -o %t.apple.dSYM
4 RUN: llvm-dwarfdump -v %t.dwarf.dSYM | FileCheck %s -check-prefixes=DWARF,COMMON
5 RUN: llvm-dwarfdump -v %t.apple.dSYM | FileCheck %s -check-prefixes=APPLE,COMMON
7 COMMON: .debug_info contents
8 COMMON: {{.*}}DW_TAG_namespace
9 COMMON: DW_AT_name{{.*}}"A"
10 COMMON: {{.*}}DW_TAG_namespace
11 COMMON: DW_AT_name{{.*}}"B"
12 COMMON: [[NAMESPACE:0x[0-9a-f]*]]:{{.*}}DW_TAG_namespace
13 COMMON: DW_AT_name{{.*}}"C"
14 COMMON: 0x0000005c:{{.*}}DW_TAG_imported_declaration
15 COMMON: DW_AT_name{{.*}}"C"
17 DWARF: .debug_names contents:
19 DWARF-NEXT: Name {{.*}} {
20 DWARF-NEXT: Hash: {{.*}}
21 DWARF-NEXT: String: {{.*}} "C"
22 DWARF-NEXT: Entry {{.*}} {
23 DWARF-NEXT: Abbrev: {{.*}}
24 DWARF-NEXT: Tag: DW_TAG_namespace
25 DWARF: DW_IDX_die_offset: [[NAMESPACE]]
26 DWARF-NEXT: DW_IDX_parent: Entry @ 0x{{.*}}
28 DWARF-NEXT: Entry {{.*}} {
29 DWARF-NEXT: Abbrev: {{.*}}
30 DWARF: Tag: DW_TAG_imported_declaration
31 DWARF: DW_IDX_die_offset: 0x0000005c
32 DWARF-NEXT: DW_IDX_parent: Entry @ 0x{{.*}}
36 APPLE: .apple_namespaces contents:
38 APPLE-NEXT: Hash {{.*}} [
39 APPLE-NEXT: Name@{{.*}} {
40 APPLE-NEXT: String: {{.*}} "C"
42 APPLE-NEXT: Atom[0]: [[NAMESPACE]]
45 APPLE-NEXT: Atom[0]: {{0x0000005c|0x0000006f}}