@@ -1141,7 +1141,7 @@ class IRGenDebugInfoImpl : public IRGenDebugInfo {
1141
1141
memberTy,
1142
1142
IGM.getTypeInfoForUnlowered (
1143
1143
IGM.getSILTypes ().getAbstractionPattern (VD), memberTy),
1144
- IGM, false );
1144
+ IGM);
1145
1145
unsigned OffsetInBits = 0 ;
1146
1146
llvm::DIType *DITy = createMemberType (DbgTy, VD->getName ().str (),
1147
1147
OffsetInBits, Scope, File, Flags);
@@ -1176,8 +1176,7 @@ class IRGenDebugInfoImpl : public IRGenDebugInfo {
1176
1176
UnsubstitutedTy = Decl->mapTypeIntoContext (UnsubstitutedTy);
1177
1177
1178
1178
auto DbgTy = DebugTypeInfo::getFromTypeInfo (
1179
- UnsubstitutedTy, IGM.getTypeInfoForUnlowered (UnsubstitutedTy), IGM,
1180
- false );
1179
+ UnsubstitutedTy, IGM.getTypeInfoForUnlowered (UnsubstitutedTy), IGM);
1181
1180
Mangle::ASTMangler Mangler;
1182
1181
std::string DeclTypeMangledName = Mangler.mangleTypeForDebugger (
1183
1182
UnsubstitutedTy->mapTypeOutOfContext (), {});
@@ -1195,8 +1194,7 @@ class IRGenDebugInfoImpl : public IRGenDebugInfo {
1195
1194
auto SuperClassTy = ClassTy->getSuperclass ();
1196
1195
if (SuperClassTy) {
1197
1196
auto SuperClassDbgTy = DebugTypeInfo::getFromTypeInfo (
1198
- SuperClassTy, IGM.getTypeInfoForUnlowered (SuperClassTy), IGM,
1199
- false );
1197
+ SuperClassTy, IGM.getTypeInfoForUnlowered (SuperClassTy), IGM);
1200
1198
1201
1199
llvm::DIType *SuperClassDITy = getOrCreateType (SuperClassDbgTy);
1202
1200
assert (SuperClassDITy && " getOrCreateType should never return null!" );
@@ -1376,7 +1374,7 @@ class IRGenDebugInfoImpl : public IRGenDebugInfo {
1376
1374
// A variant case which carries a payload.
1377
1375
ArgTy = ElemDecl->getParentEnum ()->mapTypeIntoContext (ArgTy);
1378
1376
ElemDbgTy = DebugTypeInfo::getFromTypeInfo (
1379
- ArgTy, IGM.getTypeInfoForUnlowered (ArgTy), IGM, false );
1377
+ ArgTy, IGM.getTypeInfoForUnlowered (ArgTy), IGM);
1380
1378
unsigned Offset = 0 ;
1381
1379
auto MTy =
1382
1380
createMemberType (*ElemDbgTy, ElemDecl->getBaseIdentifier ().str (),
@@ -1419,8 +1417,7 @@ class IRGenDebugInfoImpl : public IRGenDebugInfo {
1419
1417
llvm::DIType *getOrCreateDesugaredType (Type Ty, DebugTypeInfo DbgTy) {
1420
1418
DebugTypeInfo BlandDbgTy (Ty, DbgTy.getFragmentStorageType (),
1421
1419
DbgTy.getAlignment (), DbgTy.hasDefaultAlignment (),
1422
- DbgTy.isMetadataType (), DbgTy.isSizeFragmentSize (),
1423
- DbgTy.isFixedBuffer ());
1420
+ DbgTy.isMetadataType (), DbgTy.isFixedBuffer ());
1424
1421
return getOrCreateType (BlandDbgTy);
1425
1422
}
1426
1423
@@ -1450,7 +1447,7 @@ class IRGenDebugInfoImpl : public IRGenDebugInfo {
1450
1447
// For full debug info don't generate just a forward declaration for
1451
1448
// the generic type parameters.
1452
1449
ParamDebugType = DebugTypeInfo::getFromTypeInfo (
1453
- Param, IGM.getTypeInfoForUnlowered (Param), IGM, false );
1450
+ Param, IGM.getTypeInfoForUnlowered (Param), IGM);
1454
1451
else
1455
1452
ParamDebugType = DebugTypeInfo::getForwardDecl (Param);
1456
1453
@@ -1621,7 +1618,7 @@ class IRGenDebugInfoImpl : public IRGenDebugInfo {
1621
1618
auto &elemTI = IGM.getTypeInfoForUnlowered (
1622
1619
AbstractionPattern (genericSig, ElemTy->getCanonicalType ()), ElemTy);
1623
1620
auto DbgTy =
1624
- DebugTypeInfo::getFromTypeInfo (ElemTy, elemTI, IGM, false );
1621
+ DebugTypeInfo::getFromTypeInfo (ElemTy, elemTI, IGM);
1625
1622
Elements.push_back (
1626
1623
createMemberType (DbgTy, " " , OffsetInBits, Scope, MainFile, Flags));
1627
1624
}
@@ -1823,8 +1820,7 @@ class IRGenDebugInfoImpl : public IRGenDebugInfo {
1823
1820
auto SuperClassTy = ClassTy->getSuperclass ();
1824
1821
if (SuperClassTy) {
1825
1822
auto SuperClassDbgTy = DebugTypeInfo::getFromTypeInfo (
1826
- SuperClassTy, IGM.getTypeInfoForUnlowered (SuperClassTy), IGM,
1827
- false );
1823
+ SuperClassTy, IGM.getTypeInfoForUnlowered (SuperClassTy), IGM);
1828
1824
1829
1825
llvm::DIType *SuperClassDITy = getOrCreateType (SuperClassDbgTy);
1830
1826
assert (SuperClassDITy && " getOrCreateType should never return null!" );
@@ -1969,7 +1965,7 @@ class IRGenDebugInfoImpl : public IRGenDebugInfo {
1969
1965
IGM.getLoweredType (ProtocolDecl->getInterfaceType ()).getASTType ();
1970
1966
auto PDbgTy = DebugTypeInfo::getFromTypeInfo (
1971
1967
ProtocolDecl->getInterfaceType (), IGM.getTypeInfoForLowered (PTy),
1972
- IGM, false );
1968
+ IGM);
1973
1969
auto PDITy = getOrCreateType (PDbgTy);
1974
1970
Protocols.push_back (
1975
1971
DBuilder.createInheritance (FwdDecl.get (), PDITy, 0 , 0 , Flags));
@@ -2033,8 +2029,7 @@ class IRGenDebugInfoImpl : public IRGenDebugInfo {
2033
2029
UnsubstitutedTy = Decl->mapTypeIntoContext (UnsubstitutedTy);
2034
2030
2035
2031
auto DbgTy = DebugTypeInfo::getFromTypeInfo (
2036
- UnsubstitutedTy, IGM.getTypeInfoForUnlowered (UnsubstitutedTy), IGM,
2037
- false );
2032
+ UnsubstitutedTy, IGM.getTypeInfoForUnlowered (UnsubstitutedTy), IGM);
2038
2033
Mangle::ASTMangler Mangler;
2039
2034
std::string DeclTypeMangledName = Mangler.mangleTypeForDebugger (
2040
2035
UnsubstitutedTy->mapTypeOutOfContext (), {});
@@ -2061,7 +2056,7 @@ class IRGenDebugInfoImpl : public IRGenDebugInfo {
2061
2056
auto *BuiltinVectorTy = BaseTy->castTo <BuiltinVectorType>();
2062
2057
auto ElemTy = BuiltinVectorTy->getElementType ();
2063
2058
auto ElemDbgTy = DebugTypeInfo::getFromTypeInfo (
2064
- ElemTy, IGM.getTypeInfoForUnlowered (ElemTy), IGM, false );
2059
+ ElemTy, IGM.getTypeInfoForUnlowered (ElemTy), IGM);
2065
2060
unsigned Count = BuiltinVectorTy->getNumElements ();
2066
2061
auto Subscript = DBuilder.getOrCreateSubrange (0 , Count ? Count : -1 );
2067
2062
return DBuilder.createVectorType (SizeInBits, AlignInBits,
@@ -2096,8 +2091,7 @@ class IRGenDebugInfoImpl : public IRGenDebugInfo {
2096
2091
DebugTypeInfo AliasedDbgTy (
2097
2092
AliasedTy, DbgTy.getFragmentStorageType (),
2098
2093
DbgTy.getAlignment (), DbgTy.hasDefaultAlignment (), false ,
2099
- DbgTy.isSizeFragmentSize (), DbgTy.isFixedBuffer (),
2100
- DbgTy.getNumExtraInhabitants ());
2094
+ DbgTy.isFixedBuffer (), DbgTy.getNumExtraInhabitants ());
2101
2095
return DBuilder.createTypedef (getOrCreateType (AliasedDbgTy), MangledName,
2102
2096
L.File , 0 , Scope);
2103
2097
}
@@ -2216,7 +2210,7 @@ class IRGenDebugInfoImpl : public IRGenDebugInfo {
2216
2210
return ;
2217
2211
for (auto BuiltinType: IGM.getOrCreateSpecialStlibBuiltinTypes ()) {
2218
2212
auto DbgTy = DebugTypeInfo::getFromTypeInfo (
2219
- BuiltinType, IGM.getTypeInfoForUnlowered (BuiltinType), IGM, false );
2213
+ BuiltinType, IGM.getTypeInfoForUnlowered (BuiltinType), IGM);
2220
2214
DBuilder.retainType (getOrCreateType (DbgTy));
2221
2215
}
2222
2216
}
@@ -2861,7 +2855,7 @@ IRGenDebugInfoImpl::emitFunction(const SILDebugScope *DS, llvm::Function *Fn,
2861
2855
2862
2856
auto DTI = DebugTypeInfo::getFromTypeInfo (
2863
2857
errorResultTy,
2864
- IGM.getTypeInfo (SILTy), IGM, false );
2858
+ IGM.getTypeInfo (SILTy), IGM);
2865
2859
Error = DBuilder.getOrCreateArray ({getOrCreateType (DTI)}).get ();
2866
2860
}
2867
2861
0 commit comments