[memprof] Remove an unused using directive (#117004)
[llvm-project.git] / lld / test / COFF / pdb-xfg-section.s
blob5983de55b20b3f8c565f1c49dbc874a5f06717f7
1 // Check that we ignore XFG subsections in CodeView information.
2 // This test should be removed if we ever end up adding XFG support to lld.
4 # REQUIRES: x86
5 # RUN: llvm-mc -triple=i386-pc-win32 -filetype=obj -o %t.obj %s
6 # RUN: lld-link -verbose -safeseh:no -subsystem:console -debug -nodefaultlib -entry:foo -out:%t.exe -pdb:%t.pdb %t.obj 2>&1 | FileCheck %s
8 // XFGHashType should not generate a warning
9 # CHECK-NOT: ignoring unknown debug$S subsection kind 0xFF
10 // XFGHashVirtual should not generate a warning
11 # CHECK-NOT: ignoring unknown debug$S subsection kind 0x100
13 .text
14 _foo:
15 ret
17 .global _foo
19 .section .debug$S,"dr"
20 .p2align 2
21 .long 4 # Debug section magic
22 .long 0xF1 # Symbol subsection
23 .long .Ltmp6-.Ltmp5 # Subsection size
24 .Ltmp5:
25 .short .Ltmp8-.Ltmp7 # Record length
26 .Ltmp7:
27 .short 4412 # Record kind: S_COMPILE3
28 .long 0 # Flags and language
29 .short 208 # CPUType
30 .short 9 # Frontend version
31 .short 0
32 .short 0
33 .short 0
34 .short 9000 # Backend version
35 .short 0
36 .short 0
37 .short 0
38 .asciz "clang version SENTINEL" # Null-terminated compiler version string
39 .p2align 2
40 .Ltmp8:
41 .Ltmp6:
42 .long 0xFF # XFGHashType subsection
43 .long 4 # Subsection size
44 .long 0
45 .long 0x100 # XFGHashVirtual subsection
46 .long 4 # Subsection size
47 .long 0