19eb0df3aSAlexander Yermolovich; RUN: rm -rf %t 29eb0df3aSAlexander Yermolovich; RUN: mkdir %t 39eb0df3aSAlexander Yermolovich; RUN: cd %t 49eb0df3aSAlexander Yermolovich; RUN: llvm-mc -dwarf-version=4 -filetype=obj -triple x86_64-unknown-linux %p/Inputs/dwarf5-df-inlined-subroutine-range-0-main.s \ 59eb0df3aSAlexander Yermolovich; RUN: -split-dwarf-file=main.dwo -o main.o 69eb0df3aSAlexander Yermolovich; RUN: %clang %cflags -gdwarf-5 -gsplit-dwarf=split main.o -o main.exe 79eb0df3aSAlexander Yermolovich; RUN: llvm-bolt main.exe -o main.exe.bolt --update-debug-sections 89eb0df3aSAlexander Yermolovich; RUN: llvm-dwarfdump --debug-addr main.exe.bolt > log.txt 99eb0df3aSAlexander Yermolovich; RUN: llvm-dwarfdump --debug-info --verbose --show-form main.dwo.dwo >> log.txt 109eb0df3aSAlexander Yermolovich; RUN: cat log.txt | FileCheck -check-prefix=BOLT-MAIN %s 119eb0df3aSAlexander Yermolovich 12*11791ae7SSayhaan Siddiqui;; Tests whether BOLT handles correctly DW_TAG_inlined_subroutine when DW_AT_ranges is 0, 13*11791ae7SSayhaan Siddiqui;; and split dwarf is enabled. 149eb0df3aSAlexander Yermolovich 159eb0df3aSAlexander Yermolovich; BOLT-MAIN: 0x 169eb0df3aSAlexander Yermolovich; BOLT-MAIN: 0x 179eb0df3aSAlexander Yermolovich; BOLT-MAIN: 0x0000000000000000 189eb0df3aSAlexander Yermolovich; BOLT-MAIN: DW_TAG_inlined_subroutine 199eb0df3aSAlexander Yermolovich; BOLT-MAIN: DW_AT_abstract_origin [DW_FORM_ref4] (cu + 0x0044 => {0x00000044} "_Z7doStuffi") 209eb0df3aSAlexander Yermolovich; BOLT-MAIN: DW_AT_call_file 219eb0df3aSAlexander Yermolovich; BOLT-MAIN: DW_AT_call_line 229eb0df3aSAlexander Yermolovich; BOLT-MAIN: DW_AT_call_column 239eb0df3aSAlexander Yermolovich; BOLT-MAIN: DW_AT_low_pc [DW_FORM_addrx] (indexed (00000002) address = <unresolved>) 249eb0df3aSAlexander Yermolovich; BOLT-MAIN: DW_AT_high_pc [DW_FORM_data4] (0x0000002d) 259eb0df3aSAlexander Yermolovich 269eb0df3aSAlexander Yermolovich; BOLT-MAIN: DW_TAG_inlined_subroutine 279eb0df3aSAlexander Yermolovich; BOLT-MAIN: DW_AT_abstract_origin [DW_FORM_ref4] (cu + 0x005a => {0x0000005a} "_Z11doStuffSamei") 289eb0df3aSAlexander Yermolovich; BOLT-MAIN: DW_AT_call_file [DW_FORM_data1] (0x00) 299eb0df3aSAlexander Yermolovich; BOLT-MAIN: DW_AT_call_line [DW_FORM_data1] (16) 30d5e33cc1SJ. Ryan Stinnett; BOLT-MAIN: DW_AT_call_column [DW_FORM_data1] (29) 319eb0df3aSAlexander Yermolovich; BOLT-MAIN: DW_AT_low_pc [DW_FORM_addrx] (indexed (00000002) address = <unresolved>) 329eb0df3aSAlexander Yermolovich; BOLT-MAIN: DW_AT_high_pc [DW_FORM_data4] (0x00000042) 33