mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-25 04:02:41 +01:00
8d070bc9df
Emitting the correct (root of compilation) file at index 0 will be posted for review later; I wanted to get this minor change out of the way first. llvm-svn: 324669
26 lines
1.1 KiB
ArmAsm
26 lines
1.1 KiB
ArmAsm
// RUN: llvm-mc -triple x86_64-unknown-unknown -dwarf-version 5 -filetype=obj %s -o - | llvm-dwarfdump --debug-line --debug-line-str -v - | FileCheck %s
|
|
|
|
.file 1 "dir1/foo" md5 "00112233445566778899aabbccddeeff"
|
|
.file 2 "dir2" "bar" md5 "ffeeddccbbaa99887766554433221100"
|
|
.loc 1 1 0
|
|
nop
|
|
.loc 2 1 0
|
|
nop
|
|
|
|
# CHECK: debug_line[0x00000000]
|
|
# CHECK: version: 5
|
|
# CHECK: include_directories[ 0] = .debug_line_str[0x[[DIR0:[0-9a-f]+]]] = ""
|
|
# CHECK: include_directories[ 1] = .debug_line_str[0x[[DIR1:[0-9a-f]+]]] = "dir1"
|
|
# CHECK: include_directories[ 2] = .debug_line_str[0x[[DIR2:[0-9a-f]+]]] = "dir2"
|
|
# CHECK-NOT: include_directories
|
|
# CHECK: Dir MD5 Checksum File Name
|
|
# CHECK: file_names[ 0] 1 00112233445566778899aabbccddeeff .debug_line_str[0x[[FILE1:[0-9a-f]+]]] = "foo"
|
|
# CHECK: file_names[ 1] 2 ffeeddccbbaa99887766554433221100 .debug_line_str[0x[[FILE2:[0-9a-f]+]]] = "bar"
|
|
|
|
# CHECK: .debug_line_str contents:
|
|
# CHECK-NEXT: 0x[[DIR0]]: ""
|
|
# CHECK-NEXT: 0x[[DIR1]]: "dir1"
|
|
# CHECK-NEXT: 0x[[DIR2]]: "dir2"
|
|
# CHECK-NEXT: 0x[[FILE1]]: "foo"
|
|
# CHECK-NEXT: 0x[[FILE2]]: "bar"
|