codeview-merging-ghash.test
4.48 KB
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
# RUN: yaml2obj %s -o=%t.obj
# RUN: llvm-readobj --codeview-merged-types %t.obj | FileCheck %s --check-prefix=MERGED
# RUN: llvm-readobj --codeview-merged-types --codeview-ghash %t.obj | FileCheck %s --check-prefix=MERGED
# MERGED: Format: COFF-x86-64
# MERGED-NEXT: Arch: x86_64
# MERGED-NEXT: AddressSize: 64bit
# MERGED-NEXT: MergedTypeStream [
# MERGED-NEXT: ArgList (0x1000) {
# MERGED-NEXT: TypeLeafKind: LF_ARGLIST (0x1201)
# MERGED-NEXT: NumArgs: 0
# MERGED-NEXT: Arguments [
# MERGED-NEXT: ]
# MERGED-NEXT: }
# MERGED-NEXT: Modifier (0x1001) {
# MERGED-NEXT: TypeLeafKind: LF_MODIFIER (0x1001)
# MERGED-NEXT: ModifiedType: void (0x3)
# MERGED-NEXT: Modifiers [ (0x3)
# MERGED-NEXT: Const (0x1)
# MERGED-NEXT: Volatile (0x2)
# MERGED-NEXT: ]
# MERGED-NEXT: }
# MERGED-NEXT: Procedure (0x1002) {
# MERGED-NEXT: TypeLeafKind: LF_PROCEDURE (0x1008)
# MERGED-NEXT: ReturnType: void (0x3)
# MERGED-NEXT: CallingConvention: NearC (0x0)
# MERGED-NEXT: FunctionOptions [ (0x0)
# MERGED-NEXT: ]
# MERGED-NEXT: NumParameters: 0
# MERGED-NEXT: ArgListType: () (0x1000)
# MERGED-NEXT: }
# MERGED-NEXT: Pointer (0x1003) {
# MERGED-NEXT: TypeLeafKind: LF_POINTER (0x1002)
# MERGED-NEXT: PointeeType: const volatile void (0x1001)
# MERGED-NEXT: PtrType: Near64 (0xC)
# MERGED-NEXT: PtrMode: Pointer (0x0)
# MERGED-NEXT: IsFlat: 0
# MERGED-NEXT: IsConst: 1
# MERGED-NEXT: IsVolatile: 0
# MERGED-NEXT: IsUnaligned: 0
# MERGED-NEXT: IsRestrict: 0
# MERGED-NEXT: IsThisPtr&: 0
# MERGED-NEXT: IsThisPtr&&: 0
# MERGED-NEXT: SizeOf: 8
# MERGED-NEXT: }
# MERGED-NEXT: Pointer (0x1004) {
# MERGED-NEXT: TypeLeafKind: LF_POINTER (0x1002)
# MERGED-NEXT: PointeeType: const volatile void* const (0x1003)
# MERGED-NEXT: PtrType: Near64 (0xC)
# MERGED-NEXT: PtrMode: Pointer (0x0)
# MERGED-NEXT: IsFlat: 0
# MERGED-NEXT: IsConst: 1
# MERGED-NEXT: IsVolatile: 0
# MERGED-NEXT: IsUnaligned: 0
# MERGED-NEXT: IsRestrict: 0
# MERGED-NEXT: IsThisPtr&: 0
# MERGED-NEXT: IsThisPtr&&: 0
# MERGED-NEXT: SizeOf: 8
# MERGED-NEXT: }
# MERGED-NEXT: Pointer (0x1005) {
# MERGED-NEXT: TypeLeafKind: LF_POINTER (0x1002)
# MERGED-NEXT: PointeeType: const volatile void* const* const (0x1004)
# MERGED-NEXT: PtrType: Near64 (0xC)
# MERGED-NEXT: PtrMode: Pointer (0x0)
# MERGED-NEXT: IsFlat: 0
# MERGED-NEXT: IsConst: 1
# MERGED-NEXT: IsVolatile: 0
# MERGED-NEXT: IsUnaligned: 0
# MERGED-NEXT: IsRestrict: 0
# MERGED-NEXT: IsThisPtr&: 0
# MERGED-NEXT: IsThisPtr&&: 0
# MERGED-NEXT: SizeOf: 8
# MERGED-NEXT: }
# MERGED-NEXT: Pointer (0x1006) {
# MERGED-NEXT: TypeLeafKind: LF_POINTER (0x1002)
# MERGED-NEXT: PointeeType: const volatile void* const* const* const (0x1005)
# MERGED-NEXT: PtrType: Near64 (0xC)
# MERGED-NEXT: PtrMode: Pointer (0x0)
# MERGED-NEXT: IsFlat: 0
# MERGED-NEXT: IsConst: 1
# MERGED-NEXT: IsVolatile: 0
# MERGED-NEXT: IsUnaligned: 0
# MERGED-NEXT: IsRestrict: 0
# MERGED-NEXT: IsThisPtr&: 0
# MERGED-NEXT: IsThisPtr&&: 0
# MERGED-NEXT: SizeOf: 8
# MERGED-NEXT: }
# MERGED-NEXT: ]
# MERGED-NEXT: MergedIDStream [
# MERGED-NEXT: ]
--- !COFF
header:
Machine: IMAGE_FILE_MACHINE_AMD64
Characteristics: [ ]
sections:
- Name: '.debug$T'
Characteristics: [ IMAGE_SCN_CNT_INITIALIZED_DATA, IMAGE_SCN_MEM_DISCARDABLE, IMAGE_SCN_MEM_READ ]
Alignment: 1
Types:
- Kind: LF_PROCEDURE
Procedure:
ReturnType: 3
CallConv: NearC
Options: [ None ]
ParameterCount: 0
ArgumentList: 4097
- Kind: LF_ARGLIST
ArgList:
ArgIndices: [ ]
- Kind: LF_POINTER
Pointer:
ReferentType: 4099
Attrs: 66572
- Kind: LF_POINTER
Pointer:
ReferentType: 4100
Attrs: 66572
- Kind: LF_POINTER
Pointer:
ReferentType: 4101
Attrs: 66572
- Kind: LF_MODIFIER
Modifier:
ModifiedType: 3
Modifiers: [ None, Const, Volatile ]
- Kind: LF_POINTER
Pointer:
ReferentType: 4098
Attrs: 66572
symbols:
...