1# UNSUPPORTED: true 2; RUN: rm -rf %t 3; RUN: mkdir %t 4; RUN: cd %t 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 --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 14 15;; Test input into bolt a DWP file with TU Index. 16;; Make sure the output .dwp file has a type information. 17 18; PRE-BOLT: DW_TAG_type_unit 19; PRE-BOLT: DW_TAG_type_unit 20 21; PRE-BOLT-DWP-TU-INDEX: version = 2, units = 2, slots = 4 22; PRE-BOLT-DWP-TU-INDEX: Index Signature 23; PRE-BOLT-DWP-TU-INDEX: 0x675d23e4f33235f2 24; PRE-BOLT-DWP-TU-INDEX-NEXT: 0x49dc260088be7e56 25 26; BOLT: DW_TAG_type_unit 27; BOLT: DW_TAG_type_unit 28 29; BOLT-DWP-TU-INDEX: version = 2, units = 2, slots = 4 30; BOLT-DWP-TU-INDEX: Index Signature 31; BOLT-DWP-TU-INDEX: 0x675d23e4f33235f2 32; BOLT-DWP-TU-INDEX-NEXT: 0x49dc260088be7e56 33