@@ -1141,7 +1141,7 @@ class IRGenDebugInfoImpl : public IRGenDebugInfo {
11411141 memberTy,
11421142 IGM.getTypeInfoForUnlowered (
11431143 IGM.getSILTypes ().getAbstractionPattern (VD), memberTy),
1144- IGM, false );
1144+ IGM);
11451145 unsigned OffsetInBits = 0 ;
11461146 llvm::DIType *DITy = createMemberType (DbgTy, VD->getName ().str (),
11471147 OffsetInBits, Scope, File, Flags);
@@ -1176,8 +1176,7 @@ class IRGenDebugInfoImpl : public IRGenDebugInfo {
11761176 UnsubstitutedTy = Decl->mapTypeIntoContext (UnsubstitutedTy);
11771177
11781178 auto DbgTy = DebugTypeInfo::getFromTypeInfo (
1179- UnsubstitutedTy, IGM.getTypeInfoForUnlowered (UnsubstitutedTy), IGM,
1180- false );
1179+ UnsubstitutedTy, IGM.getTypeInfoForUnlowered (UnsubstitutedTy), IGM);
11811180 Mangle::ASTMangler Mangler;
11821181 std::string DeclTypeMangledName = Mangler.mangleTypeForDebugger (
11831182 UnsubstitutedTy->mapTypeOutOfContext (), {});
@@ -1195,8 +1194,7 @@ class IRGenDebugInfoImpl : public IRGenDebugInfo {
11951194 auto SuperClassTy = ClassTy->getSuperclass ();
11961195 if (SuperClassTy) {
11971196 auto SuperClassDbgTy = DebugTypeInfo::getFromTypeInfo (
1198- SuperClassTy, IGM.getTypeInfoForUnlowered (SuperClassTy), IGM,
1199- false );
1197+ SuperClassTy, IGM.getTypeInfoForUnlowered (SuperClassTy), IGM);
12001198
12011199 llvm::DIType *SuperClassDITy = getOrCreateType (SuperClassDbgTy);
12021200 assert (SuperClassDITy && " getOrCreateType should never return null!" );
@@ -1376,7 +1374,7 @@ class IRGenDebugInfoImpl : public IRGenDebugInfo {
13761374 // A variant case which carries a payload.
13771375 ArgTy = ElemDecl->getParentEnum ()->mapTypeIntoContext (ArgTy);
13781376 ElemDbgTy = DebugTypeInfo::getFromTypeInfo (
1379- ArgTy, IGM.getTypeInfoForUnlowered (ArgTy), IGM, false );
1377+ ArgTy, IGM.getTypeInfoForUnlowered (ArgTy), IGM);
13801378 unsigned Offset = 0 ;
13811379 auto MTy =
13821380 createMemberType (*ElemDbgTy, ElemDecl->getBaseIdentifier ().str (),
@@ -1419,8 +1417,7 @@ class IRGenDebugInfoImpl : public IRGenDebugInfo {
14191417 llvm::DIType *getOrCreateDesugaredType (Type Ty, DebugTypeInfo DbgTy) {
14201418 DebugTypeInfo BlandDbgTy (Ty, DbgTy.getFragmentStorageType (),
14211419 DbgTy.getAlignment (), DbgTy.hasDefaultAlignment (),
1422- DbgTy.isMetadataType (), DbgTy.isSizeFragmentSize (),
1423- DbgTy.isFixedBuffer ());
1420+ DbgTy.isMetadataType (), DbgTy.isFixedBuffer ());
14241421 return getOrCreateType (BlandDbgTy);
14251422 }
14261423
@@ -1450,7 +1447,7 @@ class IRGenDebugInfoImpl : public IRGenDebugInfo {
14501447 // For full debug info don't generate just a forward declaration for
14511448 // the generic type parameters.
14521449 ParamDebugType = DebugTypeInfo::getFromTypeInfo (
1453- Param, IGM.getTypeInfoForUnlowered (Param), IGM, false );
1450+ Param, IGM.getTypeInfoForUnlowered (Param), IGM);
14541451 else
14551452 ParamDebugType = DebugTypeInfo::getForwardDecl (Param);
14561453
@@ -1621,7 +1618,7 @@ class IRGenDebugInfoImpl : public IRGenDebugInfo {
16211618 auto &elemTI = IGM.getTypeInfoForUnlowered (
16221619 AbstractionPattern (genericSig, ElemTy->getCanonicalType ()), ElemTy);
16231620 auto DbgTy =
1624- DebugTypeInfo::getFromTypeInfo (ElemTy, elemTI, IGM, false );
1621+ DebugTypeInfo::getFromTypeInfo (ElemTy, elemTI, IGM);
16251622 Elements.push_back (
16261623 createMemberType (DbgTy, " " , OffsetInBits, Scope, MainFile, Flags));
16271624 }
@@ -1823,8 +1820,7 @@ class IRGenDebugInfoImpl : public IRGenDebugInfo {
18231820 auto SuperClassTy = ClassTy->getSuperclass ();
18241821 if (SuperClassTy) {
18251822 auto SuperClassDbgTy = DebugTypeInfo::getFromTypeInfo (
1826- SuperClassTy, IGM.getTypeInfoForUnlowered (SuperClassTy), IGM,
1827- false );
1823+ SuperClassTy, IGM.getTypeInfoForUnlowered (SuperClassTy), IGM);
18281824
18291825 llvm::DIType *SuperClassDITy = getOrCreateType (SuperClassDbgTy);
18301826 assert (SuperClassDITy && " getOrCreateType should never return null!" );
@@ -1969,7 +1965,7 @@ class IRGenDebugInfoImpl : public IRGenDebugInfo {
19691965 IGM.getLoweredType (ProtocolDecl->getInterfaceType ()).getASTType ();
19701966 auto PDbgTy = DebugTypeInfo::getFromTypeInfo (
19711967 ProtocolDecl->getInterfaceType (), IGM.getTypeInfoForLowered (PTy),
1972- IGM, false );
1968+ IGM);
19731969 auto PDITy = getOrCreateType (PDbgTy);
19741970 Protocols.push_back (
19751971 DBuilder.createInheritance (FwdDecl.get (), PDITy, 0 , 0 , Flags));
@@ -2033,8 +2029,7 @@ class IRGenDebugInfoImpl : public IRGenDebugInfo {
20332029 UnsubstitutedTy = Decl->mapTypeIntoContext (UnsubstitutedTy);
20342030
20352031 auto DbgTy = DebugTypeInfo::getFromTypeInfo (
2036- UnsubstitutedTy, IGM.getTypeInfoForUnlowered (UnsubstitutedTy), IGM,
2037- false );
2032+ UnsubstitutedTy, IGM.getTypeInfoForUnlowered (UnsubstitutedTy), IGM);
20382033 Mangle::ASTMangler Mangler;
20392034 std::string DeclTypeMangledName = Mangler.mangleTypeForDebugger (
20402035 UnsubstitutedTy->mapTypeOutOfContext (), {});
@@ -2061,7 +2056,7 @@ class IRGenDebugInfoImpl : public IRGenDebugInfo {
20612056 auto *BuiltinVectorTy = BaseTy->castTo <BuiltinVectorType>();
20622057 auto ElemTy = BuiltinVectorTy->getElementType ();
20632058 auto ElemDbgTy = DebugTypeInfo::getFromTypeInfo (
2064- ElemTy, IGM.getTypeInfoForUnlowered (ElemTy), IGM, false );
2059+ ElemTy, IGM.getTypeInfoForUnlowered (ElemTy), IGM);
20652060 unsigned Count = BuiltinVectorTy->getNumElements ();
20662061 auto Subscript = DBuilder.getOrCreateSubrange (0 , Count ? Count : -1 );
20672062 return DBuilder.createVectorType (SizeInBits, AlignInBits,
@@ -2096,8 +2091,7 @@ class IRGenDebugInfoImpl : public IRGenDebugInfo {
20962091 DebugTypeInfo AliasedDbgTy (
20972092 AliasedTy, DbgTy.getFragmentStorageType (),
20982093 DbgTy.getAlignment (), DbgTy.hasDefaultAlignment (), false ,
2099- DbgTy.isSizeFragmentSize (), DbgTy.isFixedBuffer (),
2100- DbgTy.getNumExtraInhabitants ());
2094+ DbgTy.isFixedBuffer (), DbgTy.getNumExtraInhabitants ());
21012095 return DBuilder.createTypedef (getOrCreateType (AliasedDbgTy), MangledName,
21022096 L.File , 0 , Scope);
21032097 }
@@ -2216,7 +2210,7 @@ class IRGenDebugInfoImpl : public IRGenDebugInfo {
22162210 return ;
22172211 for (auto BuiltinType: IGM.getOrCreateSpecialStlibBuiltinTypes ()) {
22182212 auto DbgTy = DebugTypeInfo::getFromTypeInfo (
2219- BuiltinType, IGM.getTypeInfoForUnlowered (BuiltinType), IGM, false );
2213+ BuiltinType, IGM.getTypeInfoForUnlowered (BuiltinType), IGM);
22202214 DBuilder.retainType (getOrCreateType (DbgTy));
22212215 }
22222216 }
@@ -2861,7 +2855,7 @@ IRGenDebugInfoImpl::emitFunction(const SILDebugScope *DS, llvm::Function *Fn,
28612855
28622856 auto DTI = DebugTypeInfo::getFromTypeInfo (
28632857 errorResultTy,
2864- IGM.getTypeInfo (SILTy), IGM, false );
2858+ IGM.getTypeInfo (SILTy), IGM);
28652859 Error = DBuilder.getOrCreateArray ({getOrCreateType (DTI)}).get ();
28662860 }
28672861
0 commit comments