brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.0 KiB · 4ed3c1d Raw
20 lines · plain
1# REQUIRES: system-linux2 3# RUN: llvm-mc -dwarf-version=5 -filetype=obj -triple x86_64-unknown-linux %p/Inputs/dwarf5-empty-arange-main.s   -o %tmain.o4# RUN: llvm-mc -dwarf-version=5 -filetype=obj -triple x86_64-unknown-linux %p/Inputs/dwarf5-empty-arange-helper.s -o %thelper.o5# RUN: %clang %cflags -dwarf-5 %tmain.o %thelper.o -o %t.exe -Wl,--entry=main -Wl,-q -Wl,-gc-sections6# RUN: llvm-bolt %t.exe -o %t.bolt --update-debug-sections --debug-thread-count=4 --cu-processing-batch-size=47# RUN: llvm-dwarfdump --debug-aranges %t.bolt > %t.txt8# RUN: llvm-dwarfdump --debug-info -r 0 %t.bolt >> %t.txt9# RUN: cat %t.txt | FileCheck --check-prefix=POSTCHECK %s10 11## This tests checks that BOLT handles correctly empty arange. Before we would output 0x0,0x0.12## Which tools interpreted as an end to aragnes list.13 14# POSTCHECK:      Address Range Header15# POSTCHECK-NOT:  Address Range Header16# POSTCHECK:      DW_TAG_compile_unit17# POSTCHECK:      DW_TAG_compile_unit18# POSTCHECK:      DW_AT_ranges19# POSTCHECK-NEXT: [0x0000000000000000, 0x0000000000000000))20