brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.1 KiB · 401da48 Raw
26 lines · plain
1; RUN: rm -rf %t2; RUN: mkdir %t3; RUN: cd %t4; RUN: llvm-mc --split-dwarf-file=main.dwo --triple=x86_64-unknown-linux-gnu \5; RUN: --filetype=obj %p/Inputs/dwarf4-ftypes-split-dwarf.s -o=main.o6; RUN: %clang %cflags -gdwarf-4 -gsplit-dwarf=split main.o -o main.exe7; RUN: llvm-dwp -e main.exe -o main.exe.dwp8; RUN: llvm-dwarfdump --show-form --verbose --debug-types main.exe.dwp | FileCheck -check-prefix=PRE-BOLT %s9; RUN: llvm-dwarfdump --show-form --verbose --debug-tu-index main.exe.dwp | FileCheck -check-prefix=PRE-BOLT-DWP-TU-INDEX %s10; RUN: llvm-bolt main.exe -o main.exe.bolt --update-debug-sections11; RUN: llvm-dwarfdump --show-form --verbose --debug-types main.dwo.dwo | FileCheck -check-prefix=BOLT %s12 13;; Test input into bolt a DWP file with TU Index.14;; Make sure output in the .dwo files has type information.15 16; PRE-BOLT: DW_TAG_type_unit17; PRE-BOLT: DW_TAG_type_unit18 19; PRE-BOLT-DWP-TU-INDEX: version = 2, units = 2, slots = 420; PRE-BOLT-DWP-TU-INDEX: Index Signature21; PRE-BOLT-DWP-TU-INDEX: 0x675d23e4f33235f222; PRE-BOLT-DWP-TU-INDEX-NEXT: 0x49dc260088be7e5623 24; BOLT: DW_TAG_type_unit25; BOLT: DW_TAG_type_unit26