@@ -56,8 +56,8 @@ LLVMMetadataRef LLVMDIBuilderCreateLexicalBlock(LLVMDIBuilderRef Dref,
56
56
unsigned Line,
57
57
unsigned Column) {
58
58
DIBuilder *D = unwrap (Dref);
59
- auto *LB = D->createLexicalBlock (unwrap<MDLocalScope >(Scope),
60
- unwrap<MDFile >(File), Line, Column);
59
+ auto *LB = D->createLexicalBlock (unwrap<DILocalScope >(Scope),
60
+ unwrap<DIFile >(File), Line, Column);
61
61
return wrap (LB);
62
62
}
63
63
@@ -66,8 +66,8 @@ LLVMMetadataRef LLVMDIBuilderCreateLexicalBlockFile(LLVMDIBuilderRef Dref,
66
66
LLVMMetadataRef File,
67
67
unsigned Discriminator) {
68
68
DIBuilder *D = unwrap (Dref);
69
- return wrap (D->createLexicalBlockFile (unwrap<MDLocalScope >(Scope),
70
- unwrap<MDFile >(File), Discriminator));
69
+ return wrap (D->createLexicalBlockFile (unwrap<DILocalScope >(Scope),
70
+ unwrap<DIFile >(File), Discriminator));
71
71
}
72
72
73
73
LLVMMetadataRef LLVMDIBuilderCreateFunction (
@@ -76,9 +76,9 @@ LLVMMetadataRef LLVMDIBuilderCreateFunction(
76
76
LLVMMetadataRef CompositeType, int IsLocalToUnit, int IsDefinition,
77
77
unsigned ScopeLine, unsigned Flags, int IsOptimized, LLVMValueRef Func) {
78
78
DIBuilder *D = unwrap (Dref);
79
- return wrap (D->createFunction (unwrap<MDScope >(Scope), Name, LinkageName,
80
- File ? unwrap<MDFile >(File) : nullptr , Line,
81
- unwrap<MDSubroutineType >(CompositeType),
79
+ return wrap (D->createFunction (unwrap<DIScope >(Scope), Name, LinkageName,
80
+ File ? unwrap<DIFile >(File) : nullptr , Line,
81
+ unwrap<DISubroutineType >(CompositeType),
82
82
IsLocalToUnit, IsDefinition, ScopeLine, Flags,
83
83
IsOptimized, unwrap<Function>(Func)));
84
84
}
@@ -89,8 +89,8 @@ LLVMMetadataRef LLVMDIBuilderCreateLocalVariable(
89
89
int AlwaysPreserve, unsigned Flags, unsigned ArgNo) {
90
90
DIBuilder *D = unwrap (Dref);
91
91
return wrap (D->createLocalVariable (
92
- Tag, unwrap<MDScope >(Scope), Name, unwrap<MDFile >(File), Line,
93
- unwrap<MDType >(Ty), AlwaysPreserve, Flags, ArgNo));
92
+ Tag, unwrap<DIScope >(Scope), Name, unwrap<DIFile >(File), Line,
93
+ unwrap<DIType >(Ty), AlwaysPreserve, Flags, ArgNo));
94
94
}
95
95
96
96
LLVMMetadataRef LLVMDIBuilderCreateBasicType (LLVMDIBuilderRef Dref,
@@ -108,7 +108,7 @@ LLVMMetadataRef LLVMDIBuilderCreatePointerType(LLVMDIBuilderRef Dref,
108
108
uint64_t AlignInBits,
109
109
const char *Name) {
110
110
DIBuilder *D = unwrap (Dref);
111
- return wrap (D->createPointerType (unwrap<MDType >(PointeeType), SizeInBits,
111
+ return wrap (D->createPointerType (unwrap<DIType >(PointeeType), SizeInBits,
112
112
AlignInBits, Name));
113
113
}
114
114
@@ -117,8 +117,8 @@ LLVMDIBuilderCreateSubroutineType(LLVMDIBuilderRef Dref, LLVMMetadataRef File,
117
117
LLVMMetadataRef ParameterTypes) {
118
118
DIBuilder *D = unwrap (Dref);
119
119
return wrap (
120
- D->createSubroutineType (File ? unwrap<MDFile >(File) : nullptr ,
121
- MDTypeRefArray (unwrap<MDTuple>(ParameterTypes))));
120
+ D->createSubroutineType (File ? unwrap<DIFile >(File) : nullptr ,
121
+ DITypeRefArray (unwrap<MDTuple>(ParameterTypes))));
122
122
}
123
123
124
124
LLVMMetadataRef LLVMDIBuilderCreateStructType (
@@ -128,10 +128,10 @@ LLVMMetadataRef LLVMDIBuilderCreateStructType(
128
128
LLVMMetadataRef ElementTypes) {
129
129
DIBuilder *D = unwrap (Dref);
130
130
return wrap (D->createStructType (
131
- unwrap<MDScope >(Scope), Name, File ? unwrap<MDFile >(File) : nullptr , Line,
131
+ unwrap<DIScope >(Scope), Name, File ? unwrap<DIFile >(File) : nullptr , Line,
132
132
SizeInBits, AlignInBits, Flags,
133
- DerivedFrom ? unwrap<MDType >(DerivedFrom) : nullptr ,
134
- ElementTypes ? DebugNodeArray (unwrap<MDTuple>(ElementTypes)) : nullptr ));
133
+ DerivedFrom ? unwrap<DIType >(DerivedFrom) : nullptr ,
134
+ ElementTypes ? DINodeArray (unwrap<MDTuple>(ElementTypes)) : nullptr ));
135
135
}
136
136
137
137
LLVMMetadataRef LLVMDIBuilderCreateReplaceableCompositeType (
@@ -141,7 +141,7 @@ LLVMMetadataRef LLVMDIBuilderCreateReplaceableCompositeType(
141
141
unsigned Flags) {
142
142
DIBuilder *D = unwrap (Dref);
143
143
return wrap (D->createReplaceableCompositeType (
144
- Tag, Name, unwrap<MDScope >(Scope), File ? unwrap<MDFile >(File) : nullptr ,
144
+ Tag, Name, unwrap<DIScope >(Scope), File ? unwrap<DIFile >(File) : nullptr ,
145
145
Line, RuntimeLang, SizeInBits, AlignInBits, Flags));
146
146
}
147
147
@@ -153,8 +153,8 @@ LLVMDIBuilderCreateMemberType(LLVMDIBuilderRef Dref, LLVMMetadataRef Scope,
153
153
unsigned Flags, LLVMMetadataRef Ty) {
154
154
DIBuilder *D = unwrap (Dref);
155
155
return wrap (D->createMemberType (
156
- unwrap<MDScope >(Scope), Name, File ? unwrap<MDFile >(File) : nullptr , Line,
157
- SizeInBits, AlignInBits, OffsetInBits, Flags, unwrap<MDType >(Ty)));
156
+ unwrap<DIScope >(Scope), Name, File ? unwrap<DIFile >(File) : nullptr , Line,
157
+ SizeInBits, AlignInBits, OffsetInBits, Flags, unwrap<DIType >(Ty)));
158
158
}
159
159
160
160
LLVMMetadataRef LLVMDIBuilderCreateArrayType (LLVMDIBuilderRef Dref,
@@ -164,18 +164,18 @@ LLVMMetadataRef LLVMDIBuilderCreateArrayType(LLVMDIBuilderRef Dref,
164
164
LLVMMetadataRef Subscripts) {
165
165
DIBuilder *D = unwrap (Dref);
166
166
return wrap (D->createArrayType (SizeInBits, AlignInBits,
167
- unwrap<MDType >(ElementType),
168
- DebugNodeArray (unwrap<MDTuple>(Subscripts))));
167
+ unwrap<DIType >(ElementType),
168
+ DINodeArray (unwrap<MDTuple>(Subscripts))));
169
169
}
170
170
171
171
LLVMMetadataRef LLVMDIBuilderCreateTypedef (LLVMDIBuilderRef Dref,
172
172
LLVMMetadataRef Ty, const char *Name,
173
173
LLVMMetadataRef File, unsigned Line,
174
174
LLVMMetadataRef Context) {
175
175
DIBuilder *D = unwrap (Dref);
176
- return wrap (D->createTypedef (unwrap<MDType >(Ty), Name,
177
- File ? unwrap<MDFile >(File) : nullptr , Line,
178
- Context ? unwrap<MDScope >(Context) : nullptr ));
176
+ return wrap (D->createTypedef (unwrap<DIType >(Ty), Name,
177
+ File ? unwrap<DIFile >(File) : nullptr , Line,
178
+ Context ? unwrap<DIScope >(Context) : nullptr ));
179
179
}
180
180
181
181
LLVMMetadataRef LLVMDIBuilderGetOrCreateSubrange (LLVMDIBuilderRef Dref,
@@ -190,7 +190,7 @@ LLVMMetadataRef LLVMDIBuilderGetOrCreateArray(LLVMDIBuilderRef Dref,
190
190
DIBuilder *D = unwrap (Dref);
191
191
Metadata **DataValue = unwrap (Data);
192
192
ArrayRef<Metadata *> Elements (DataValue, Length);
193
- DebugNodeArray A = D->getOrCreateArray (Elements);
193
+ DINodeArray A = D->getOrCreateArray (Elements);
194
194
return wrap (A.get ());
195
195
}
196
196
@@ -200,7 +200,7 @@ LLVMMetadataRef LLVMDIBuilderGetOrCreateTypeArray(LLVMDIBuilderRef Dref,
200
200
DIBuilder *D = unwrap (Dref);
201
201
Metadata **DataValue = unwrap (Data);
202
202
ArrayRef<Metadata *> Elements (DataValue, Length);
203
- MDTypeRefArray A = D->getOrCreateTypeArray (Elements);
203
+ DITypeRefArray A = D->getOrCreateTypeArray (Elements);
204
204
return wrap (A.get ());
205
205
}
206
206
@@ -221,8 +221,8 @@ LLVMValueRef LLVMDIBuilderInsertDeclareAtEnd(LLVMDIBuilderRef Dref,
221
221
222
222
DIBuilder *D = unwrap (Dref);
223
223
Instruction *Instr = D->insertDeclare (
224
- unwrap (Storage), unwrap<MDLocalVariable >(VarInfo),
225
- unwrap<MDExpression >(Expr), /* DebugLoc */ nullptr , unwrap (Block));
224
+ unwrap (Storage), unwrap<DILocalVariable >(VarInfo),
225
+ unwrap<DIExpression >(Expr), /* DebugLoc */ nullptr , unwrap (Block));
226
226
return wrap (Instr);
227
227
}
228
228
@@ -237,7 +237,7 @@ LLVMValueRef LLVMDIBuilderInsertValueAtEnd(LLVMDIBuilderRef Dref,
237
237
238
238
DIBuilder *D = unwrap (Dref);
239
239
Instruction *Instr = D->insertDbgValueIntrinsic (
240
- unwrap (Val), Offset, unwrap<MDLocalVariable >(VarInfo),
241
- unwrap<MDExpression >(Expr), /* DebugLoc */ nullptr , unwrap (Block));
240
+ unwrap (Val), Offset, unwrap<DILocalVariable >(VarInfo),
241
+ unwrap<DIExpression >(Expr), /* DebugLoc */ nullptr , unwrap (Block));
242
242
return wrap (Instr);
243
243
}
0 commit comments