1 # REQUIRES: system-linux
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.o
4 # 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.o
5 # RUN: llvm-mc -dwarf-version=5 -filetype=obj -triple x86_64-unknown-linux %p/Inputs/dwarf5-debug-line-not-modified-helper.s -o %t3.o
6 # RUN: %clang %cflags -dwarf-5 %t1.o %t2.o %t3.o -o %t.exe -Wl,-q
7 # RUN: llvm-bolt %t.exe -o %t.bolt --update-debug-sections
8 # RUN: llvm-dwarfdump --show-form --verbose --debug-line %t.bolt | FileCheck --check-prefix=POSTCHECK %s
10 # This test checks that BOLT generates correct debug_line_str when one of CU contributions is not modified.
12 # POSTCHECK: version: 5
13 # 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: 0
17 # POSTCHECK: md5_checksum: 7228a872dc174332f3151a7ac3344b26
18 # POSTCHECK: version: 5
19 # 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: 0
23 # POSTCHECK: md5_checksum: b6e6130198b21a44b5db4247fccb359d
24 # POSTCHECK: version: 5
25 # 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: 0
29 # POSTCHECK: md5_checksum: 95a4a33e7fe9423970d3c798fdf8ed43