brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.0 KiB · 44721b1 Raw
21 lines · plain
1# REQUIRES: system-linux2 3# RUN: llvm-mc -dwarf-version=5 -filetype=obj -triple x86_64-unknown-linux %p/Inputs/dwarf5-cu-no-debug-addr-main.s -o %t1main.o4# RUN: llvm-mc -dwarf-version=5 -filetype=obj -triple x86_64-unknown-linux %p/Inputs/dwarf5-cu-no-debug-addr-helper.s -o %t1helper.o5# RUN: %clang %cflags -dwarf-5 %t1main.o %t1helper.o -o %t.exe -Wl,-q6# RUN: llvm-bolt %t.exe -o %t.bolt --update-debug-sections --debug-thread-count=4 --cu-processing-batch-size=47# RUN: llvm-dwarfdump --show-form --verbose --debug-info %t.exe  | FileCheck --check-prefix=PRECHECK %s8# RUN: llvm-dwarfdump --show-form --verbose --debug-info %t.bolt | FileCheck --check-prefix=POSTCHECK %s9 10## This tests checks that we handle correctly, don't crash, DWARF5 CUs that does not access .debug_addr.11 12# PRECHECK: DW_TAG_compile_unit13# PRECHECK: DW_AT_addr_base14# PRECHECK: DW_TAG_compile_unit15# PRECHECK-NOT: DW_AT_addr_base16 17# POSTCHECK: DW_TAG_compile_unit18# POSTCHECK: DW_AT_addr_base19# POSTCHECK: DW_TAG_compile_unit20# POSTCHECK-NOT: DW_AT_addr_base21