1 # REQUIRES: system-linux
5 ; RUN: llvm-mc --split-dwarf-file=main.dwo --triple=x86_64-unknown-linux-gnu \
6 ; RUN: --filetype=obj %p/Inputs/dwarf5-ftypes-split-dwarf.s -o=main.o
7 ; RUN: llvm-mc --split-dwarf-file=helper.dwo --triple=x86_64-unknown-linux-gnu \
8 ; RUN: --filetype=obj %p/Inputs/dwarf5-ftypes-split-dwarf-helper.s -o=helper.o
9 ; RUN: %clang %cflags -gdwarf-5 -gsplit-dwarf=split main.o helper.o -o main.exe
10 ; RUN: llvm-dwp -e main.exe -o main.exe.dwp
11 ; RUN: llvm-dwarfdump --show-form --verbose --debug-info main.exe.dwp | FileCheck -check-prefix=PRE-BOLT %s
12 ; RUN: llvm-dwarfdump --show-form --verbose --debug-tu-index main.exe.dwp | FileCheck -check-prefix=PRE-BOLT-DWP-TU-INDEX %s
13 ; RUN: llvm-bolt main.exe -o main.exe.bolt --update-debug-sections
14 ; RUN: llvm-dwarfdump --show-form --verbose --debug-info main.dwo.dwo | FileCheck -check-prefix=BOLT %s
16 ; Test input into bolt a DWP file with TU Index.
17 ; Make sure output in the .dwo files has type information.
19 ; PRE-BOLT: DW_TAG_type_unit
20 ; PRE-BOLT: DW_TAG_type_unit
22 ; PRE-BOLT-DWP-TU-INDEX: version = 5, units = 2, slots = 4
23 ; PRE-BOLT-DWP-TU-INDEX: Index Signature
24 ; PRE-BOLT-DWP-TU-INDEX: 0x675d23e4f33235f2
25 ; PRE-BOLT-DWP-TU-INDEX-NEXT: 0x49dc260088be7e56
27 ; BOLT: DW_TAG_type_unit
28 ; BOLT: DW_TAG_type_unit
29 ; BOLT: DW_TAG_compile_unit