42 lines · plain
1## This test checks that .debug_names accelerator table2## is generated if --build-accelerator=DWARF option is3## specified and source file has DWARFv5 debug info.4 5# RUN: llvm-dwarfutil --no-garbage-collection --build-accelerator=DWARF %p/Inputs/dwarf5.out %t16# RUN: llvm-dwarfdump --verify %t1 | FileCheck %s --check-prefix=VERIFY7# RUN: llvm-dwarfdump -a %t1 | FileCheck %s8 9# RUN: llvm-dwarfutil --garbage-collection --build-accelerator=DWARF %p/Inputs/dwarf5.out %t110# RUN: llvm-dwarfdump --verify %t1 | FileCheck %s --check-prefix=VERIFY11# RUN: llvm-dwarfdump -a %t1 | FileCheck %s12#13# RUN: llvm-dwarfutil --linker parallel --no-garbage-collection \14# RUN: --build-accelerator=DWARF %p/Inputs/dwarf5.out %t115# RUN: llvm-dwarfdump --verify %t1 | FileCheck %s --check-prefix=VERIFY16# RUN: llvm-dwarfdump -a %t1 | FileCheck %s17 18# RUN: llvm-dwarfutil --linker parallel --garbage-collection \19# RUN: --build-accelerator=DWARF %p/Inputs/dwarf5.out %t120# RUN: llvm-dwarfdump --verify %t1 | FileCheck %s --check-prefix=VERIFY21# RUN: llvm-dwarfdump -a %t1 | FileCheck %s22 23# VERIFY: No errors24 25# CHECK: .debug_names contents:26# CHECK: Compilation Unit offsets [27# CHECK: CU[0]: 0x0000000028# CHECK: ]29# CHECK: Abbreviations30# CHECK: String: {{.*}} "_Z3foov"31# CHECK: Tag: DW_TAG_subprogram32# CHECK: String: {{.*}} "int"33# CHECK: Tag: DW_TAG_base_type34# CHECK: String: {{.*}} "foo"35# CHECK: Tag: DW_TAG_subprogram36# CHECK: String: {{.*}} "A"37# CHECK: Tag: DW_TAG_structure_type38# CHECK: String: {{.*}} "main"39# CHECK: Tag: DW_TAG_subprogram40# CHECK: String: {{.*}} "char"41# CHECK: Tag: DW_TAG_base_type42