blob: db83de97ac80d62b766ddd319c4c633ade237ded [file] [log] [blame]
David Majnemer6fcbd7e2016-01-29 19:24:12 +00001# RUN: llvm-mc -triple=i686-pc-win32 -filetype=obj < %s | llvm-readobj -codeview | FileCheck %s
2 .text
3 .def @feat.00;
4 .scl 3;
5 .type 0;
6 .endef
7 .globl @feat.00
8@feat.00 = 1
9 .def "?baz@@YAXXZ";
10 .scl 2;
11 .type 32;
12 .endef
13 .globl "?baz@@YAXXZ"
14 .p2align 4, 0x90
15"?baz@@YAXXZ": # @"\01?baz@@YAXXZ"
16Lfunc_begin0:
17 .cv_file 1 "D:\\src\\llvm\\build\\t.cpp"
18 .cv_loc 0 1 13 0 is_stmt 0 # t.cpp:13:0
19# BB#0: # %entry
20 pushl %eax
21 .cv_loc 0 1 14 5 # t.cpp:14:5
22 addl $6, "?x@@3HC"
23 .cv_loc 1 1 9 5 # t.cpp:9:5
24 addl $4, "?x@@3HC"
25 .cv_loc 2 1 3 7 # t.cpp:3:7
26 movl $1, (%esp)
27 leal (%esp), %eax
28 .cv_loc 2 1 4 5 # t.cpp:4:5
29 addl %eax, "?x@@3HC"
30 .cv_loc 2 1 5 5 # t.cpp:5:5
31 addl $2, "?x@@3HC"
32 .cv_loc 2 1 6 5 # t.cpp:6:5
33 addl $3, "?x@@3HC"
34 .cv_loc 1 1 11 5 # t.cpp:11:5
35 addl $5, "?x@@3HC"
36 .cv_loc 0 1 16 5 # t.cpp:16:5
37 addl $7, "?x@@3HC"
38 .cv_loc 0 1 17 1 # t.cpp:17:1
39 popl %eax
40 retl
41Lfunc_end0:
42
43 .section .debug$T,"dr"
44 .long 4
45 .short 6
46 .short 4609
47 .long 0
48 .short 14
49 .short 4104
50 .asciz "\003\000\000\000\000\000\000\000\000\020\000"
51 .short 14
52 .short 5633
53 .asciz "\000\000\000\000\001\020\000"
54 .ascii "baz"
55 .byte 0
56 .short 14
57 .short 5633
58 .asciz "\000\000\000\000\001\020\000"
59 .ascii "bar"
60 .byte 0
61 .short 14
62 .short 5633
63 .asciz "\000\000\000\000\001\020\000"
64 .ascii "foo"
65 .byte 0
66 .section .debug$S,"dr"
67 .long 4
68 .long 241 # Symbol subsection for baz
69 .long Ltmp1-Ltmp0
70Ltmp0:
71 .short Ltmp3-Ltmp2
72Ltmp2:
73 .short 4423
74 .zero 12
75 .long Lfunc_end0-"?baz@@YAXXZ"
76 .zero 12
77 .secrel32 "?baz@@YAXXZ"
78 .secidx "?baz@@YAXXZ"
79 .byte 0
80 .ascii "baz"
81 .byte 0
82Ltmp3:
83 .short Ltmp5-Ltmp4
84Ltmp4:
85 .short 4429
86 .asciz "\000\000\000\000\000\000\000\000\003\020\000"
87 .cv_inline_linetable 1 1 9 contains 2
88# CHECK: InlineSite {
89# CHECK: PtrParent: 0x0
90# CHECK: PtrEnd: 0x0
91# CHECK: Inlinee: bar (0x1003)
92# CHECK: BinaryAnnotations [
93# CHECK: ChangeLineOffset: 2
94# CHECK: ]
95# CHECK: }
96Ltmp5:
97 .short Ltmp7-Ltmp6
98Ltmp6:
99 .short 4429
100 .asciz "\000\000\000\000\000\000\000\000\004\020\000"
101 .cv_inline_linetable 2 1 3
102# CHECK: InlineSite {
103# CHECK: PtrParent: 0x0
104# CHECK: PtrEnd: 0x0
105# CHECK: Inlinee: foo (0x1004)
106# CHECK: BinaryAnnotations [
107# CHECK: ChangeLineOffset: 1
108# CHECK: ChangeLineOffset: 1
109# CHECK: ChangeLineOffset: 1
110# CHECK: ]
111# CHECK: }
112Ltmp7:
113 .short 2
114 .short 4430
115 .short 2
116 .short 4430
117 .short 2
118 .short 4431
119Ltmp1:
120 .zero 1
121 .cv_linetable 0, "?baz@@YAXXZ", Lfunc_end0
122 .cv_filechecksums # File index to string table offset subsection
123 .cv_stringtable # String table
124