blob: b59a3f056b226fea6f854b7cf82bbb417411fe99 [file] [log] [blame]
# REQUIRES: system-linux
; RUN: rm -rf %t
; RUN: mkdir %t
; RUN: cd %t
; RUN: llvm-mc --split-dwarf-file=main.dwo --triple=x86_64-unknown-linux-gnu \
; RUN: --filetype=obj %p/Inputs/dwarf5-ftypes-split-dwarf.s -o=main.o
; RUN: llvm-mc --split-dwarf-file=helper.dwo --triple=x86_64-unknown-linux-gnu \
; RUN: --filetype=obj %p/Inputs/dwarf5-ftypes-split-dwarf-helper.s -o=helper.o
; RUN: %clang %cflags -gdwarf-5 -gsplit-dwarf=split main.o helper.o -o main.exe
; RUN: llvm-dwp -e main.exe -o main.exe.dwp
; RUN: llvm-dwarfdump --show-form --verbose --debug-info main.exe.dwp | FileCheck -check-prefix=PRE-BOLT %s
; RUN: llvm-dwarfdump --show-form --verbose --debug-tu-index main.exe.dwp | FileCheck -check-prefix=PRE-BOLT-DWP-TU-INDEX %s
; RUN: llvm-bolt main.exe -o main.exe.bolt --update-debug-sections
; RUN: llvm-dwarfdump --show-form --verbose --debug-info main.dwo.dwo | FileCheck -check-prefix=BOLT %s
; Test input into bolt a DWP file with TU Index.
; Make sure output in the .dwo files has type information.
; PRE-BOLT: DW_TAG_type_unit
; PRE-BOLT: DW_TAG_type_unit
; PRE-BOLT-DWP-TU-INDEX: version = 5, units = 2, slots = 4
; PRE-BOLT-DWP-TU-INDEX: Index Signature
; PRE-BOLT-DWP-TU-INDEX: 0x675d23e4f33235f2
; PRE-BOLT-DWP-TU-INDEX-NEXT: 0x49dc260088be7e56
; BOLT: DW_TAG_type_unit
; BOLT: DW_TAG_type_unit
; BOLT: DW_TAG_compile_unit