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