@@ -72,7 +72,7 @@ class BuiltinTypeRef final : public TypeRef {
72
72
73
73
template <typename Allocator>
74
74
static const BuiltinTypeRef *create (Allocator &A, std::string MangledName) {
75
- return A.template make_typeref <BuiltinTypeRef>(MangledName);
75
+ return A.template makeTypeRef <BuiltinTypeRef>(MangledName);
76
76
}
77
77
78
78
const std::string &getMangledName () const {
@@ -118,7 +118,7 @@ class NominalTypeRef final : public TypeRef, public NominalTypeTrait {
118
118
static const NominalTypeRef *create (Allocator &A,
119
119
const std::string &MangledName,
120
120
const TypeRef *Parent = nullptr ) {
121
- return A.template make_typeref <NominalTypeRef>(MangledName, Parent);
121
+ return A.template makeTypeRef <NominalTypeRef>(MangledName, Parent);
122
122
}
123
123
124
124
static bool classof (const TypeRef *TR) {
@@ -142,9 +142,9 @@ class BoundGenericTypeRef final : public TypeRef, public NominalTypeTrait {
142
142
create (Allocator &A, const std::string &MangledName,
143
143
std::vector<const TypeRef *> GenericParams,
144
144
const TypeRef *Parent = nullptr ) {
145
- return A.template make_typeref <BoundGenericTypeRef>(MangledName,
146
- GenericParams,
147
- Parent);
145
+ return A.template makeTypeRef <BoundGenericTypeRef>(MangledName,
146
+ GenericParams,
147
+ Parent);
148
148
}
149
149
150
150
const std::vector<const TypeRef *> &getGenericParams () const {
@@ -168,7 +168,7 @@ class TupleTypeRef final : public TypeRef {
168
168
static TupleTypeRef *create (Allocator &A,
169
169
std::vector<const TypeRef *> Elements,
170
170
bool Variadic = false ) {
171
- return A.template make_typeref <TupleTypeRef>(Elements, Variadic);
171
+ return A.template makeTypeRef <TupleTypeRef>(Elements, Variadic);
172
172
}
173
173
174
174
const std::vector<const TypeRef *> &getElements () const {
@@ -196,7 +196,7 @@ class FunctionTypeRef final : public TypeRef {
196
196
static FunctionTypeRef *create (Allocator &A,
197
197
std::vector<const TypeRef *> Arguments,
198
198
const TypeRef *Result) {
199
- return A.template make_typeref <FunctionTypeRef>(Arguments, Result);
199
+ return A.template makeTypeRef <FunctionTypeRef>(Arguments, Result);
200
200
}
201
201
202
202
const std::vector<const TypeRef *> &getArguments () const {
@@ -225,7 +225,7 @@ class ProtocolTypeRef final : public TypeRef {
225
225
static const ProtocolTypeRef *
226
226
create (Allocator &A, const std::string &ModuleName,
227
227
const std::string &Name) {
228
- return A.template make_typeref <ProtocolTypeRef>(ModuleName, Name);
228
+ return A.template makeTypeRef <ProtocolTypeRef>(ModuleName, Name);
229
229
}
230
230
231
231
const std::string &getName () const {
@@ -259,7 +259,7 @@ class ProtocolCompositionTypeRef final : public TypeRef {
259
259
template <typename Allocator>
260
260
static const ProtocolCompositionTypeRef *
261
261
create (Allocator &A, std::vector<const TypeRef *> Protocols) {
262
- return A.template make_typeref <ProtocolCompositionTypeRef>(Protocols);
262
+ return A.template makeTypeRef <ProtocolCompositionTypeRef>(Protocols);
263
263
}
264
264
265
265
const std::vector<const TypeRef *> &getProtocols () const {
@@ -281,7 +281,7 @@ class MetatypeTypeRef final : public TypeRef {
281
281
template <typename Allocator>
282
282
static const MetatypeTypeRef *create (Allocator &A,
283
283
const TypeRef *InstanceType) {
284
- return A.template make_typeref <MetatypeTypeRef>(InstanceType);
284
+ return A.template makeTypeRef <MetatypeTypeRef>(InstanceType);
285
285
}
286
286
287
287
const TypeRef *getInstanceType () const {
@@ -303,7 +303,7 @@ class ExistentialMetatypeTypeRef final : public TypeRef {
303
303
template <typename Allocator>
304
304
static const ExistentialMetatypeTypeRef *
305
305
create (Allocator &A, const TypeRef *InstanceType) {
306
- return A.template make_typeref <ExistentialMetatypeTypeRef>(InstanceType);
306
+ return A.template makeTypeRef <ExistentialMetatypeTypeRef>(InstanceType);
307
307
}
308
308
309
309
const TypeRef *getInstanceType () const {
@@ -326,7 +326,7 @@ class GenericTypeParameterTypeRef final : public TypeRef {
326
326
template <typename Allocator>
327
327
static const GenericTypeParameterTypeRef *
328
328
create (Allocator &A, uint32_t Depth, uint32_t Index) {
329
- return A.template make_typeref <GenericTypeParameterTypeRef>(Depth, Index);
329
+ return A.template makeTypeRef <GenericTypeParameterTypeRef>(Depth, Index);
330
330
}
331
331
332
332
uint32_t getDepth () const {
@@ -357,8 +357,8 @@ class DependentMemberTypeRef final : public TypeRef {
357
357
static const DependentMemberTypeRef *
358
358
create (Allocator &A, const std::string &Member,
359
359
const TypeRef *Base, const TypeRef *Protocol) {
360
- return A.template make_typeref <DependentMemberTypeRef>(Member, Base,
361
- Protocol);
360
+ return A.template makeTypeRef <DependentMemberTypeRef>(Member, Base,
361
+ Protocol);
362
362
}
363
363
364
364
const std::string &getMember () const {
@@ -391,7 +391,7 @@ class ForeignClassTypeRef final : public TypeRef {
391
391
template <typename Allocator>
392
392
static ForeignClassTypeRef *create (Allocator &A,
393
393
const std::string &Name) {
394
- return A.template make_typeref <ForeignClassTypeRef>(Name);
394
+ return A.template makeTypeRef <ForeignClassTypeRef>(Name);
395
395
}
396
396
397
397
const std::string &getName () const {
@@ -414,7 +414,7 @@ class ObjCClassTypeRef final : public TypeRef {
414
414
415
415
template <typename Allocator>
416
416
static const ObjCClassTypeRef *create (Allocator &A, const std::string &Name) {
417
- return A.template make_typeref <ObjCClassTypeRef>(Name);
417
+ return A.template makeTypeRef <ObjCClassTypeRef>(Name);
418
418
}
419
419
420
420
const std::string &getName () const {
@@ -459,7 +459,7 @@ class UnownedStorageTypeRef final : public ReferenceStorageTypeRef {
459
459
template <typename Allocator>
460
460
static const UnownedStorageTypeRef *create (Allocator &A,
461
461
const TypeRef *Type) {
462
- return A.template make_typeref <UnownedStorageTypeRef>(Type);
462
+ return A.template makeTypeRef <UnownedStorageTypeRef>(Type);
463
463
}
464
464
465
465
static bool classof (const TypeRef *TR) {
@@ -475,7 +475,7 @@ class WeakStorageTypeRef final : public ReferenceStorageTypeRef {
475
475
template <typename Allocator>
476
476
static const WeakStorageTypeRef *create (Allocator &A,
477
477
const TypeRef *Type) {
478
- return A.template make_typeref <WeakStorageTypeRef>(Type);
478
+ return A.template makeTypeRef <WeakStorageTypeRef>(Type);
479
479
}
480
480
481
481
static bool classof (const TypeRef *TR) {
@@ -491,7 +491,7 @@ class UnmanagedStorageTypeRef final : public ReferenceStorageTypeRef {
491
491
template <typename Allocator>
492
492
static const UnmanagedStorageTypeRef *create (Allocator &A,
493
493
const TypeRef *Type) {
494
- return A.template make_typeref <UnmanagedStorageTypeRef>(Type);
494
+ return A.template makeTypeRef <UnmanagedStorageTypeRef>(Type);
495
495
}
496
496
497
497
static bool classof (const TypeRef *TR) {
0 commit comments