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: [[IMPORTED:0x[0-9a-f]*]]:{{.*}}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-NEXT: DW_IDX_die_offset: [[NAMESPACE]]
27 DWARF-NEXT: Entry {{.*}} {
28 DWARF-NEXT: Abbrev: {{.*}}
29 DWARF-NEXT: Tag: DW_TAG_imported_declaration
30 DWARF-NEXT: DW_IDX_die_offset: [[IMPORTED]]
34 APPLE: .apple_namespaces contents:
36 APPLE-NEXT: Hash {{.*}} [
37 APPLE-NEXT: Name@{{.*}} {
38 APPLE-NEXT: String: {{.*}} "C"
40 APPLE-NEXT: Atom[0]: [[NAMESPACE]]
43 APPLE-NEXT: Atom[0]: [[IMPORTED]]