[memprof] Remove an unused using directive (#117004)
[llvm-project.git] / lld / test / ELF / debug-names-nonames.s
blob54b7c864fa825bc5db7c158b6fae31be288a3211
1 # REQUIRES: x86
2 # RUN: rm -rf %t && mkdir %t && cd %t
3 # RUN: llvm-mc -filetype=obj -triple=x86_64 %S/Inputs/debug-names-a.s -o a.o
4 # RUN: echo '.globl foo; foo:' | llvm-mc -filetype=obj -triple=x86_64 - -o b0.o
6 # RUN: ld.lld --debug-names a.o b0.o -o out0
7 # RUN: llvm-dwarfdump -debug-names out0 | FileCheck %s --check-prefix=DWARF
9 # DWARF: .debug_names contents:
10 # DWARF-NEXT: Name Index @ 0x0 {
11 # DWARF-NEXT: Header {
12 # DWARF-NEXT: Length: 0x6F
13 # DWARF-NEXT: Format: DWARF32
14 # DWARF-NEXT: Version: 5
15 # DWARF-NEXT: CU count: 1
16 # DWARF-NEXT: Local TU count: 0
17 # DWARF-NEXT: Foreign TU count: 0
18 # DWARF-NEXT: Bucket count: 2
19 # DWARF-NEXT: Name count: 2
20 # DWARF-NEXT: Abbreviations table size: 0x15
21 # DWARF-NEXT: Augmentation: 'LLVM0700'
22 # DWARF-NEXT: }
23 # DWARF-NEXT: Compilation Unit offsets [
24 # DWARF-NEXT: CU[0]: 0x00000000
25 # DWARF-NEXT: ]
27 ## Test both files without .debug_names.
28 # RUN: echo '.globl _start; _start:' | llvm-mc -filetype=obj -triple=x86_64 - -o a0.o
29 # RUN: ld.lld --debug-names a0.o b0.o -o out1
30 # RUN: llvm-readelf -SW out1 | FileCheck %s --check-prefix=ELF
32 # ELF: Name Type Address Off Size ES Flg Lk Inf Al
33 # ELF-NOT: .debug_names