@@ -57,7 +57,8 @@ DebugTypeInfo DebugTypeInfo::getFromTypeInfo(swift::Type Ty, const TypeInfo &TI,
57
57
assert (TI.getStorageType () && " StorageType is a nullptr" );
58
58
return DebugTypeInfo (Ty.getPointer (), StorageType,
59
59
TI.getBestKnownAlignment (), ::hasDefaultAlignment (Ty),
60
- false , false , NumExtraInhabitants);
60
+ /* IsMetadataType = */ false ,
61
+ /* IsFixedBuffer = */ false , NumExtraInhabitants);
61
62
}
62
63
63
64
DebugTypeInfo DebugTypeInfo::getLocalVariable (VarDecl *Decl, swift::Type Ty,
@@ -82,7 +83,9 @@ DebugTypeInfo DebugTypeInfo::getLocalVariable(VarDecl *Decl, swift::Type Ty,
82
83
DebugTypeInfo DebugTypeInfo::getGlobalMetadata (swift::Type Ty,
83
84
llvm::Type *StorageTy, Size size,
84
85
Alignment align) {
85
- DebugTypeInfo DbgTy (Ty.getPointer (), StorageTy, align, true , false );
86
+ DebugTypeInfo DbgTy (Ty.getPointer (), StorageTy, align,
87
+ /* HasDefaultAlignment = */ true ,
88
+ /* IsMetadataType = */ false );
86
89
assert (StorageTy && " StorageType is a nullptr" );
87
90
assert (!DbgTy.isContextArchetype () &&
88
91
" type metadata cannot contain an archetype" );
@@ -92,7 +95,9 @@ DebugTypeInfo DebugTypeInfo::getGlobalMetadata(swift::Type Ty,
92
95
DebugTypeInfo DebugTypeInfo::getTypeMetadata (swift::Type Ty,
93
96
llvm::Type *StorageTy, Size size,
94
97
Alignment align) {
95
- DebugTypeInfo DbgTy (Ty.getPointer (), StorageTy, align, true , true );
98
+ DebugTypeInfo DbgTy (Ty.getPointer (), StorageTy, align,
99
+ /* HasDefaultAlignment = */ true ,
100
+ /* IsMetadataType = */ true );
96
101
assert (StorageTy && " StorageType is a nullptr" );
97
102
assert (!DbgTy.isContextArchetype () &&
98
103
" type metadata cannot contain an archetype" );
@@ -138,7 +143,8 @@ DebugTypeInfo::getGlobalFixedBuffer(SILGlobalVariable *GV,
138
143
Type = DeclType.getPointer ();
139
144
}
140
145
DebugTypeInfo DbgTy (Type, FragmentStorageType,
141
- Align, ::hasDefaultAlignment (Type), false , true );
146
+ Align, ::hasDefaultAlignment (Type),
147
+ /* IsMetadataType = */ false , /* IsFixedBuffer = */ true );
142
148
assert (FragmentStorageType && " FragmentStorageType is a nullptr" );
143
149
assert (!DbgTy.isContextArchetype () &&
144
150
" type of global variable cannot be an archetype" );
@@ -149,7 +155,9 @@ DebugTypeInfo DebugTypeInfo::getObjCClass(ClassDecl *theClass,
149
155
llvm::Type *FragmentStorageType,
150
156
Size SizeInBytes, Alignment align) {
151
157
DebugTypeInfo DbgTy (theClass->getInterfaceType ().getPointer (),
152
- FragmentStorageType, align, true , false );
158
+ FragmentStorageType, align,
159
+ /* HasDefaultAlignment = */ true ,
160
+ /* IsMetadataType = */ false );
153
161
assert (FragmentStorageType && " FragmentStorageType is a nullptr" );
154
162
assert (!DbgTy.isContextArchetype () &&
155
163
" type of objc class cannot be an archetype" );
0 commit comments