30 lines · plain
1; RUN: rm -rf %t2; RUN: mkdir %t3; RUN: cd %t4; RUN: llvm-mc -dwarf-version=5 -filetype=obj -triple x86_64-unknown-linux %p/Inputs/dwarf5-df-types-dup-main.s \5; RUN: -split-dwarf-file=main.dwo -o main.o6; RUN: llvm-mc -dwarf-version=5 -filetype=obj -triple x86_64-unknown-linux %p/Inputs/dwarf5-df-types-dup-helper.s \7; RUN: -split-dwarf-file=helper.dwo -o helper.o8; RUN: %clang %cflags -gdwarf-5 -gsplit-dwarf=split main.o helper.o -o main.exe9; RUN: llvm-dwp -e main.exe -o main.exe.dwp10; RUN: llvm-bolt main.exe -o main.exe.bolt --update-debug-sections11; RUN: llvm-dwarfdump --debug-info -r 0 main.dwo.dwo | FileCheck -check-prefix=BOLT-DWO-DWO-MAIN %s12; RUN: llvm-dwarfdump --debug-info -r 0 helper.dwo.dwo | FileCheck -check-prefix=BOLT-DWO-DWO-HELPER %s13 14;; Tests that BOLT correctly handles DWARF5 DWP file as input. Output has correct CU, and all the type units are written out.15 16; BOLT-DWO-DWO-MAIN: debug_info.dwo17; BOLT-DWO-DWO-MAIN-NEXT: type_signature = 0x49dc260088be7e5618; BOLT-DWO-DWO-MAIN: type_signature = 0x104ec427d2ebea6f19; BOLT-DWO-DWO-MAIN: type_signature = 0xca1e65a66d92b97020; BOLT-DWO-DWO-MAIN: Compile Unit21; BOLT-DWO-DWO-MAIN-SAME: DWO_id = 0x52bda211bf6d26b722; BOLT-DWO-DWO-MAIN-NOT: Compile Unit23; BOLT-DWO-DWO-HELPER: debug_info.dwo24; BOLT-DWO-DWO-HELPER-NEXT: type_signature = 0x49dc260088be7e5625; BOLT-DWO-DWO-HELPER: type_signature = 0x104ec427d2ebea6f26; BOLT-DWO-DWO-HELPER: type_signature = 0xca1e65a66d92b97027; BOLT-DWO-DWO-HELPER: Compile Unit28; BOLT-DWO-DWO-HELPER-SAME: DWO_id = 0x1dbb67285a49634c29; BOLT-DWO-DWO-HELPER-NOT: Compile Unit30