File: debug-hash-file.s

package info (click to toggle)
llvm-toolchain-15 1%3A15.0.6-4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,554,644 kB
  • sloc: cpp: 5,922,452; ansic: 1,012,136; asm: 674,362; python: 191,568; objc: 73,855; f90: 42,327; lisp: 31,913; pascal: 11,973; javascript: 10,144; sh: 9,421; perl: 7,447; ml: 5,527; awk: 3,523; makefile: 2,520; xml: 885; cs: 573; fortran: 567
file content (51 lines) | stat: -rw-r--r-- 2,037 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
// RUN: llvm-mc -triple x86_64-unknown-linux-gnu -filetype obj -g -dwarf-version 4 -o %t %s
// RUN: llvm-dwarfdump -debug-info -debug-line %t | FileCheck %s --check-prefixes=CHECK,DWARF4

// RUN: llvm-mc -triple x86_64-unknown-linux-gnu -filetype obj -g -dwarf-version 5 -o %t %s
// RUN: llvm-dwarfdump -debug-info -debug-line %t | FileCheck %s --check-prefixes=CHECK,DWARF5

// CHECK: DW_TAG_compile_unit
// CHECK-NOT: DW_TAG_
// CHECK: DW_AT_name      ("/MyTest/Inputs{{(/|\\)+}}other.S")
// CHECK: DW_TAG_label
// CHECK-NOT: DW_TAG_
// CHECK: DW_AT_decl_file ("/MyTest/Inputs{{(/|\\)+}}other.S")

// DWARF4: include_directories[ 1] = "/MyTest/Inputs"
// DWARF4: file_names[ 1]:
// DWARF4-NEXT: name: "other.S"
// DWARF4-NEXT: dir_index: 1

// DWARF5:      include_directories[ 0] =
// DWARF5-NOT:  include_directories[ 1] =
// DWARF5:      file_names[ 0]:
// DWARF5-NEXT:           name: "/MyTest/Inputs/other.S"
// DWARF5-NEXT:      dir_index: 0
// DWARF5-NOT:  file_names[ 1]:

// RUN: llvm-mc -triple=x86_64 -filetype=obj -g -dwarf-version=4 -fdebug-prefix-map=/MyTest=/src_root %s -o %t.4.o
// RUN: llvm-dwarfdump -debug-info -debug-line %t.4.o | FileCheck %s --check-prefixes=MAP,MAP_V4
// RUN: llvm-mc -triple=x86_64 -filetype=obj -g -dwarf-version=5 -fdebug-prefix-map=/MyTest=/src_root %s -o %t.5.o
// RUN: llvm-dwarfdump -debug-info -debug-line %t.5.o | FileCheck %s --check-prefixes=MAP,MAP_V5

// MAP-LABEL:   DW_TAG_compile_unit
// MAP:           DW_AT_name      ("/src_root/Inputs{{(/|\\)+}}other.S")
// MAP-LABEL:     DW_TAG_label
// MAP:             DW_AT_decl_file      ("/src_root/Inputs{{(/|\\)+}}other.S")

// MAP_V4:      include_directories[  1] = "/src_root/Inputs"
// MAP_V4-NEXT: file_names[  1]:
// MAP_V4-NEXT:            name: "other.S"
// MAP_V4-NEXT:       dir_index: 1

// MAP_V5:      include_directories[  0] = "{{.*}}"
// MAP_V5-NEXT: file_names[  0]:
// MAP_V5-NEXT:            name: "/src_root/Inputs/other.S"
// MAP_V5-NEXT:       dir_index: 0

# 1 "/MyTest/Inputs/other.S"

foo:
  nop
  nop
  nop