brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.6 KiB · 57fb6aa Raw
44 lines · plain
1## This test checks that .debug_names accelerator tables are2## generated if --build-accelerator=DWARF option is specified3## and source file has DWARFv4 debug info.4 5# RUN: yaml2obj %p/Inputs/common.yaml -o %t.o6 7# RUN: llvm-dwarfutil --no-garbage-collection --build-accelerator=DWARF %t.o %t18# RUN: llvm-dwarfdump --verify %t1 | FileCheck %s --check-prefix=VERIFY9# RUN: llvm-dwarfdump -a %t1 | FileCheck %s10 11# RUN: llvm-dwarfutil --garbage-collection --build-accelerator=DWARF %t.o %t112# RUN: llvm-dwarfdump --verify %t1 | FileCheck %s --check-prefix=VERIFY13# RUN: llvm-dwarfdump -a %t1 | FileCheck %s14#15# RUN: llvm-dwarfutil --linker parallel --no-garbage-collection \16# RUN:   --build-accelerator=DWARF %t.o %t117# RUN: llvm-dwarfdump --verify %t1 | FileCheck %s --check-prefix=VERIFY18# RUN: llvm-dwarfdump -a %t1 | FileCheck %s19 20# RUN: llvm-dwarfutil --linker parallel --garbage-collection \21# RUN:   --build-accelerator=DWARF %t.o %t122# RUN: llvm-dwarfdump --verify %t1 | FileCheck %s --check-prefix=VERIFY23# RUN: llvm-dwarfdump -a %t1 | FileCheck %s24 25# VERIFY: No errors26 27# CHECK: .debug_names contents:28# CHECK:  Compilation Unit offsets [29# CHECK:    CU[0]: 0x0000000030# CHECK:  ]31# CHECK: Abbreviations32# CHECK: String: {{.*}} "foo1"33# CHECK: Tag: DW_TAG_subprogram34# CHECK: String: {{.*}} "class1"35# CHECK: Tag: DW_TAG_class_type36# CHECK: String: {{.*}} "float"37# CHECK: Tag: DW_TAG_base_type38# CHECK: String: {{.*}} "int"39# CHECK: Tag: DW_TAG_base_type40# CHECK: String: {{.*}} "var1"41# CHECK: Tag: DW_TAG_variable42# CHECK: String: {{.*}} "char"43# CHECK: Tag: DW_TAG_base_type44