34 lines · plain
1# REQUIRES: system-linux2; RUN: rm -rf %t3; RUN: mkdir %t4; RUN: cd %t5; 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.o7; RUN: %clang %cflags -gdwarf-4 -gsplit-dwarf=split main.o -o main.exe8; RUN: llvm-dwp -e main.exe -o main.exe.dwp9; RUN: llvm-dwarfdump --show-form --verbose --debug-types main.exe.dwp | FileCheck -check-prefix=PRE-BOLT %s10; RUN: llvm-dwarfdump --show-form --verbose --debug-tu-index main.exe.dwp | FileCheck -check-prefix=PRE-BOLT-DWP-TU-INDEX %s11; RUN: llvm-bolt main.exe -o main.exe.bolt --update-debug-sections12; RUN: llvm-dwp -e main.exe.bolt -o main.exe.bolt.dwp13; RUN: llvm-dwarfdump --show-form --verbose --debug-types main.exe.bolt.dwp | FileCheck -check-prefix=BOLT %s14; RUN: llvm-dwarfdump --show-form --verbose --debug-tu-index main.exe.bolt.dwp | FileCheck -check-prefix=BOLT-DWP-TU-INDEX %s15 16;; Test input into bolt a DWP file with TU Index.17;; Make sure the output .dwp file has a type information.18 19; PRE-BOLT: DW_TAG_type_unit20; PRE-BOLT: DW_TAG_type_unit21 22; PRE-BOLT-DWP-TU-INDEX: version = 2, units = 2, slots = 423; PRE-BOLT-DWP-TU-INDEX: Index Signature24; PRE-BOLT-DWP-TU-INDEX: 0x675d23e4f33235f225; PRE-BOLT-DWP-TU-INDEX-NEXT: 0x49dc260088be7e5626 27; BOLT: DW_TAG_type_unit28; BOLT: DW_TAG_type_unit29 30; BOLT-DWP-TU-INDEX: version = 2, units = 2, slots = 431; BOLT-DWP-TU-INDEX: Index Signature32; BOLT-DWP-TU-INDEX: 0x675d23e4f33235f233; BOLT-DWP-TU-INDEX-NEXT: 0x49dc260088be7e5634