30 lines · plain
1# REQUIRES: system-linux2 3# RUN: llvm-mc -dwarf-version=5 -filetype=obj -triple x86_64-unknown-linux %p/Inputs/dwarf5-debug-line-not-modified-main.s -o %t1.o4# RUN: llvm-mc -dwarf-version=5 -filetype=obj -triple x86_64-unknown-linux %p/Inputs/dwarf5-debug-line-not-modified-helper-variable.s -o %t2.o5# RUN: llvm-mc -dwarf-version=5 -filetype=obj -triple x86_64-unknown-linux %p/Inputs/dwarf5-debug-line-not-modified-helper.s -o %t3.o6# RUN: %clang %cflags -dwarf-5 %t1.o %t2.o %t3.o -o %t.exe -Wl,-q7# RUN: llvm-bolt %t.exe -o %t.bolt --update-debug-sections8# RUN: llvm-dwarfdump --show-form --verbose --debug-line %t.bolt | FileCheck --check-prefix=POSTCHECK %s9 10## This test checks that BOLT generates correct debug_line_str when one of CU contributions is not modified.11 12# POSTCHECK: version: 513# POSTCHECK: include_directories[ 0] = .debug_line_str[{{.*}}] = "/test"14# POSTCHECK: file_names[ 0]:15# POSTCHECK: name: .debug_line_str[{{.*}}] = "main.cpp"16# POSTCHECK: dir_index: 017# POSTCHECK: md5_checksum: 7228a872dc174332f3151a7ac3344b2618# POSTCHECK: version: 519# POSTCHECK: include_directories[ 0] = .debug_line_str[{{.*}}] = "/test"20# POSTCHECK: file_names[ 0]:21# POSTCHECK: name: .debug_line_str[{{.*}}] = "helperVariable.cpp"22# POSTCHECK: dir_index: 023# POSTCHECK: md5_checksum: b6e6130198b21a44b5db4247fccb359d24# POSTCHECK: version: 525# POSTCHECK: include_directories[ 0] = .debug_line_str[{{.*}}] = "/test"26# POSTCHECK: file_names[ 0]:27# POSTCHECK: name: .debug_line_str[{{.*}}] = "helper.cpp"28# POSTCHECK: dir_index: 029# POSTCHECK: md5_checksum: 95a4a33e7fe9423970d3c798fdf8ed4330