1 # REQUIRES: system-linux
5 ; RUN: llvm-mc --split-dwarf-file=main.dwo -dwarf-version=4 -filetype=obj -triple x86_64-unknown-linux %p/Inputs/dwarf4-split-gdb-index-types-main.s -o main.o
6 ; RUN: llvm-mc --split-dwarf-file=helper.dwo -dwarf-version=4 -filetype=obj -triple x86_64-unknown-linux %p/Inputs/dwarf4-split-gdb-index-types-helper.s -o helper1.o
7 ; RUN: llvm-mc -dwarf-version=4 -filetype=obj -triple x86_64-unknown-linux %p/Inputs/dwarf4-types-helper2.s -o helper2.o
8 ; RUN: %clang %cflags -gdwarf-4 -gsplit-dwarf=split main.o helper1.o helper2.o -o main.exe
9 ; RUN: llvm-dwarfdump --show-form --verbose --debug-types main.dwo | FileCheck -check-prefix=PRE-BOLT %s
10 ; RUN: llvm-dwarfdump --show-form --verbose --debug-types helper2.o | FileCheck -check-prefix=PRE-BOLT2 %s
11 ; RUN: llvm-bolt main.exe -o main.exe.bolt --update-debug-sections --write-dwp
12 ; RUN: llvm-dwarfdump --show-form --verbose --debug-types main.exe.bolt.dwp | FileCheck -check-prefix=BOLT %s
13 ; RUN: llvm-dwarfdump --show-form --verbose --debug-tu-index main.exe.bolt.dwp | FileCheck -check-prefix=BOLT-DWP-TU-INDEX %s
15 ; Test input into bolt a .dwo file with TU Index.
16 ; Test split-dwarf and monolithic TUs.
17 ; Make sure the output .dwp file has a type information.
19 ; PRE-BOLT: 0x675d23e4f33235f2
20 ; PRE-BOLT: DW_TAG_type_unit
21 ; PRE-BOLT: 0x49dc260088be7e56
22 ; PRE-BOLT: DW_TAG_type_unit
24 ; PRE-BOLT2: 0x8f55ac73549bc003
25 ; PRE-BOLT2: DW_TAG_type_unit
26 ; PRE-BOLT2: 0xe7734af8fed0632e
27 ; PRE-BOLT2: DW_TAG_type_unit
29 ; BOLT: 0x675d23e4f33235f2
30 ; BOLT: DW_TAG_type_unit
31 ; BOLT: 0x49dc260088be7e56
32 ; BOLT: DW_TAG_type_unit
33 ; BOLT: 0x104ec427d2ebea6f
34 ; BOLT: DW_TAG_type_unit
35 ; BOLT: 0xb4580bc1535df1e4
36 ; BOLT: DW_TAG_type_unit
37 ; BOLT-NOT: 0x8f55ac73549bc003
38 ; BOLT-NOT: 0xe7734af8fed0632e
40 ; BOLT-DWP-TU-INDEX: version = 2, units = 4, slots = 8
41 ; BOLT-DWP-TU-INDEX: Index Signature
42 ; BOLT-DWP-TU-INDEX: 0x675d23e4f33235f2
43 ; BOLT-DWP-TU-INDEX-NEXT: 0xb4580bc1535df1e4
44 ; BOLT-DWP-TU-INDEX-NEXT: 0x49dc260088be7e56
45 ; BOLT-DWP-TU-INDEX-NEXT: 0x104ec427d2ebea6f