1// RUN: llvm-mc -triple x86_64-unknown-unknown -dwarf-version 5 -fdebug-compilation-dir=/tmp -filetype=obj %s -o - | llvm-dwarfdump --debug-line --debug-line-str -v - | FileCheck %s 2 3 .file 1 "dir1/foo" md5 0x00112233445566778899aabbccddeeff 4 .file 2 "dir2" "bar" md5 0xffeeddccbbaa99887766554433221100 5 .loc 1 1 0 6 nop 7 .loc 2 1 0 8 nop 9 10# CHECK: debug_line[0x00000000] 11# CHECK: version: 5 12# CHECK: include_directories[ 0] = .debug_line_str[0x[[DIR0:[0-9a-f]+]]] = "/tmp" 13# CHECK: include_directories[ 1] = .debug_line_str[0x[[DIR1:[0-9a-f]+]]] = "dir1" 14# CHECK: include_directories[ 2] = .debug_line_str[0x[[DIR2:[0-9a-f]+]]] = "dir2" 15# CHECK-NOT: include_directories 16# CHECK: file_names[ 0]: 17# CHECK-NEXT: name: .debug_line_str[0x[[FILE0:[0-9a-f]+]]] = "foo" 18# CHECK-NEXT: dir_index: 1 19# CHECK: file_names[ 1]: 20# CHECK-NEXT: name: .debug_line_str[0x[[FILE0]]] = "foo" 21# CHECK-NEXT: dir_index: 1 22# CHECK-NEXT: md5_checksum: 00112233445566778899aabbccddeeff 23# CHECK: file_names[ 2]: 24# CHECK-NEXT: name: .debug_line_str[0x[[FILE2:[0-9a-f]+]]] = "bar" 25# CHECK-NEXT: dir_index: 2 26# CHECK-NEXT: md5_checksum: ffeeddccbbaa99887766554433221100 27 28# CHECK: .debug_line_str contents: 29# CHECK-NEXT: 0x[[DIR0]]: "/tmp" 30# CHECK-NEXT: 0x[[DIR1]]: "dir1" 31# CHECK-NEXT: 0x[[DIR2]]: "dir2" 32# CHECK-NEXT: 0x[[FILE0]]: "foo" 33# CHECK-NEXT: 0x[[FILE2]]: "bar" 34