1 ## This test checks the warning message displayed if input file
2 ## contains .debug_pubnames section which is incompatible with
3 ## requested accelerator table.
5 # RUN: yaml2obj %s -o %t.o
7 # RUN: llvm-dwarfutil --garbage-collection %t.o %t1 2>&1 | FileCheck %s -DFILE=%t.o --check-prefix=WARN1
9 # RUN: llvm-dwarfutil --build-accelerator=DWARF --garbage-collection %t.o %t1 2>&1 | FileCheck %s -DFILE=%t.o --check-prefix=WARN2
11 # RUN: llvm-dwarfutil --build-accelerator=DWARF --no-garbage-collection %t.o %t1 2>&1 | FileCheck %s -DFILE=%t.o --check-prefix=WARN2
13 # WARN1: [[FILE]]: warning: '.debug_pubnames' will be deleted as no accelerator tables are requested
15 # WARN2: [[FILE]]: warning: '.debug_pubnames' will be replaced with requested .debug_names table
26 Flags: [ SHF_ALLOC, SHF_EXECINSTR ]
28 AddressAlign: 0x0000000000000010
30 - Name: .debug_pubnames
37 - Tag: DW_TAG_compile_unit
38 Children: DW_CHILDREN_yes
40 - Attribute: DW_AT_producer
42 - Attribute: DW_AT_language
44 - Attribute: DW_AT_name
46 - Attribute: DW_AT_low_pc
48 - Attribute: DW_AT_high_pc
52 UnitType: DW_UT_compile