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/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-dwarfdump --show-form --verbose --debug-types main.dwo | FileCheck -check-prefix=PRE-BOLT %s
9 ; RUN: llvm-bolt main.exe -o main.exe.bolt --update-debug-sections --write-dwp
10 ; RUN: llvm-dwarfdump --show-form --verbose --debug-types main.exe.bolt.dwp | FileCheck -check-prefix=BOLT %s
11 ; RUN: llvm-dwarfdump --show-form --verbose --debug-tu-index main.exe.bolt.dwp | FileCheck -check-prefix=BOLT-DWP-TU-INDEX %s
13 ; Test input into bolt a .dwo file with TU Index.
14 ; Make sure the output .dwp file has a type information.
16 ; PRE-BOLT: DW_TAG_type_unit
17 ; PRE-BOLT: DW_TAG_type_unit
19 ; PRE-BOLT-DWP-TU-INDEX: version = 2, units = 2, slots = 4
20 ; PRE-BOLT-DWP-TU-INDEX: Index Signature
21 ; PRE-BOLT-DWP-TU-INDEX: 0x675d23e4f33235f2
22 ; PRE-BOLT-DWP-TU-INDEX-NEXT: 0x49dc260088be7e56
24 ; BOLT: DW_TAG_type_unit
25 ; BOLT: DW_TAG_type_unit
27 ; BOLT-DWP-TU-INDEX: version = 2, units = 2, slots = 4
28 ; BOLT-DWP-TU-INDEX: Index Signature
29 ; BOLT-DWP-TU-INDEX: 0x675d23e4f33235f2
30 ; BOLT-DWP-TU-INDEX-NEXT: 0x49dc260088be7e56