brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.3 KiB · 5381039 Raw
30 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/dwarf5-ftypes-split-dwarf.s -o=main.o7; RUN: llvm-mc --split-dwarf-file=helper.dwo --triple=x86_64-unknown-linux-gnu \8; RUN: --filetype=obj %p/Inputs/dwarf5-ftypes-split-dwarf-helper.s -o=helper.o9; RUN: %clang %cflags -gdwarf-5 -gsplit-dwarf=split main.o helper.o -o main.exe10; RUN: llvm-dwp -e main.exe -o main.exe.dwp11; RUN: llvm-dwarfdump --show-form --verbose --debug-info main.exe.dwp | FileCheck -check-prefix=PRE-BOLT %s12; RUN: llvm-dwarfdump --show-form --verbose --debug-tu-index main.exe.dwp | FileCheck -check-prefix=PRE-BOLT-DWP-TU-INDEX %s13; RUN: llvm-bolt main.exe -o main.exe.bolt --update-debug-sections14; RUN: llvm-dwarfdump --show-form --verbose --debug-info main.dwo.dwo | FileCheck -check-prefix=BOLT %s15 16;; Test input into bolt a DWP file with TU Index.17;; Make sure output in the .dwo files has type information.18 19; PRE-BOLT: DW_TAG_type_unit20; PRE-BOLT: DW_TAG_type_unit21 22; PRE-BOLT-DWP-TU-INDEX: version = 5, 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; BOLT: DW_TAG_compile_unit30