21 lines · plain
1# REQUIRES: system-linux2 3# RUN: llvm-mc -dwarf-version=4 -filetype=obj -triple x86_64-unknown-linux %p/Inputs/dwarf4-do-no-convert-low-pc-high-pc-to-ranges.s -o %t1.o4# RUN: %clang %cflags %t1.o -o %t.exe -Wl,-q5# RUN: llvm-bolt %t.exe -o %t.bolt --update-debug-sections6# RUN: llvm-dwarfdump --show-form --verbose --debug-info %t.exe | FileCheck --check-prefix=PRECHECK %s7# RUN: llvm-dwarfdump --show-form --verbose --debug-info %t.bolt | FileCheck --check-prefix=POSTCHECK %s8 9## This test checks that we do not convert low_pc/high_pc to ranges for DW_TAG_inlined_subroutine,10## when there is only one output range entry.11 12# PRECHECK: DW_TAG_inlined_subroutine13# PRECHECK: DW_AT_abstract_origin14# PRECHECK: DW_AT_low_pc15# PRECHECK: DW_AT_high_pc [DW_FORM_data4] (0x00000002)16 17# POSTCHECK: DW_TAG_inlined_subroutine18# POSTCHECK: DW_AT_abstract_origin19# POSTCHECK: DW_AT_low_pc20# POSTCHECK: DW_AT_high_pc [DW_FORM_data4] (0x00000002)21