1## This test checks the warning message displayed if input file 2## contains .debug_pubnames section which is incompatible with 3## requested accelerator table. 4 5# RUN: yaml2obj %s -o %t.o 6 7# RUN: llvm-dwarfutil --garbage-collection %t.o %t1 2>&1 | FileCheck %s -DFILE=%t.o --check-prefix=WARN1 8 9# RUN: llvm-dwarfutil --build-accelerator=DWARF --garbage-collection %t.o %t1 2>&1 | FileCheck %s -DFILE=%t.o --check-prefix=WARN2 10 11# RUN: llvm-dwarfutil --build-accelerator=DWARF --no-garbage-collection %t.o %t1 2>&1 | FileCheck %s -DFILE=%t.o --check-prefix=WARN2 12 13# WARN1: [[FILE]]: warning: '.debug_pubnames' will be deleted as no accelerator tables are requested 14 15# WARN2: [[FILE]]: warning: '.debug_pubnames' will be replaced with requested .debug_names table 16 17--- !ELF 18FileHeader: 19 Class: ELFCLASS64 20 Data: ELFDATA2LSB 21 Type: ET_REL 22 Machine: EM_X86_64 23Sections: 24 - Name: .text 25 Type: SHT_PROGBITS 26 Flags: [ SHF_ALLOC, SHF_EXECINSTR ] 27 Address: 0x1000 28 AddressAlign: 0x0000000000000010 29 Content: "FFFFFFFF" 30 - Name: .debug_pubnames 31 Type: SHT_PROGBITS 32 Flags: [ ] 33 Content: "0000" 34DWARF: 35 debug_abbrev: 36 - Table: 37 - Tag: DW_TAG_compile_unit 38 Children: DW_CHILDREN_yes 39 Attributes: 40 - Attribute: DW_AT_producer 41 Form: DW_FORM_string 42 - Attribute: DW_AT_language 43 Form: DW_FORM_data2 44 - Attribute: DW_AT_name 45 Form: DW_FORM_string 46 - Attribute: DW_AT_low_pc 47 Form: DW_FORM_addr 48 - Attribute: DW_AT_high_pc 49 Form: DW_FORM_data8 50 debug_info: 51 - Version: 5 52 UnitType: DW_UT_compile 53 Entries: 54 - AbbrCode: 1 55 Values: 56 - CStr: by_hand 57 - Value: 0x04 58 - CStr: CU1 59 - Value: 0x1000 60 - Value: 0x4 61 - AbbrCode: 0 62... 63