1 RUN: dsymutil --linker parallel -accelerator=Dwarf \
2 RUN: -oso-prepend-path=%p/../../Inputs \
3 RUN: %p/../../Inputs/accel-imported-declaration.macho-arm64 -o %t.dwarf.dSYM
4 RUN: dsymutil --linker parallel -accelerator=Apple \
5 RUN: -oso-prepend-path=%p/../../Inputs \
6 RUN: %p/../../Inputs/accel-imported-declaration.macho-arm64 -o %t.apple.dSYM
8 RUN: llvm-dwarfdump -v %t.dwarf.dSYM | FileCheck %s -check-prefixes=DWARF,COMMON
9 RUN: llvm-dwarfdump -v %t.apple.dSYM | FileCheck %s -check-prefixes=APPLE,COMMON
11 COMMON: .debug_info contents
12 COMMON: DW_TAG_compile_unit
13 COMMON: DW_AT_name{{.*}}"__artificial_type_unit"
14 COMMON: DW_TAG_base_type
15 COMMON: DW_AT_name{{.*}}"int"
16 COMMON: DW_TAG_namespace
17 COMMON: DW_AT_name{{.*}}"A"
18 COMMON: DW_TAG_namespace
19 COMMON: DW_AT_name{{.*}}"B"
20 COMMON: 0x[[NAMESPACE_C_1:[0-9a-f]*]]: DW_TAG_namespace
21 COMMON: DW_AT_name{{.*}}"C"
22 COMMON-NOT: DW_TAG_variable
23 COMMON: 0x[[NAMESPACE_C_2:[0-9a-f]*]]: DW_TAG_imported_declaration
24 COMMON: DW_AT_import{{.*}}[[NAMESPACE_C_1]]
25 COMMON: DW_AT_name{{.*}}"C"
26 COMMON: DW_TAG_imported_module
27 COMMON: DW_AT_import{{.*}}[[NAMESPACE_C_1]]
30 COMMON: DW_TAG_compile_unit
31 COMMON: {{.*}}DW_TAG_namespace
32 COMMON: DW_AT_name{{.*}}"A"
33 COMMON: {{.*}}DW_TAG_namespace
34 COMMON: DW_AT_name{{.*}}"B"
35 COMMON: 0x[[NAMESPACE_C_3:[0-9a-f]*]]: DW_TAG_namespace
36 COMMON: DW_AT_name{{.*}}"C"
37 COMMON: 0x[[VAR_A:[0-9a-f]*]]: DW_TAG_variable
38 COMMON: DW_TAG_imported_declaration
39 COMMON: DW_AT_import{{.*}}[[VAR_A]]
41 DWARF: .debug_names contents:
43 DWARF-NEXT: Name {{.*}} {
44 DWARF-NEXT: Hash: {{.*}}
45 DWARF-NEXT: String: {{.*}} "C"
46 DWARF-NEXT: Entry {{.*}} {
47 DWARF-NEXT: Abbrev: {{.*}}
48 DWARF-NEXT: Tag: DW_TAG_namespace
49 DWARF: DW_IDX_die_offset: 0x0000002f
51 DWARF-NEXT: Entry {{.*}} {
52 DWARF-NEXT: Abbrev: {{.*}}
53 DWARF: Tag: DW_TAG_imported_declaration
54 DWARF: DW_IDX_die_offset: 0x00000035
56 DWARF-NEXT: Entry {{.*}} {
57 DWARF-NEXT: Abbrev: {{.*}}
58 DWARF-NEXT: Tag: DW_TAG_namespace
59 DWARF: DW_IDX_die_offset: 0x0000003c
64 APPLE: .apple_namespaces contents:
66 APPLE-NEXT: Hash {{.*}} [
67 APPLE-NEXT: Name@{{.*}} {
68 APPLE-NEXT: String: {{.*}} "C"
70 APPLE-NEXT: Atom[0]: 0x[[NAMESPACE_C_1]]
73 APPLE-NEXT: Atom[0]: 0x[[NAMESPACE_C_2]]
76 APPLE-NEXT: Atom[0]: 0x[[NAMESPACE_C_3]]