File tree Expand file tree Collapse file tree 3 files changed +7
-13
lines changed Expand file tree Collapse file tree 3 files changed +7
-13
lines changed Original file line number Diff line number Diff line change @@ -5368,10 +5368,6 @@ class ProtocolDecl final : public NominalTypeDecl {
5368
5368
// / view of the generic system; see RequirementSignature.h for details.
5369
5369
RequirementSignature getRequirementSignature () const ;
5370
5370
5371
- // / Sometimes we want to make a fake generic signature from the requirements
5372
- // / of a requirement signature.
5373
- GenericSignature getRequirementSignatureAsGenericSignature () const ;
5374
-
5375
5371
// / Is the requirement signature currently being computed?
5376
5372
bool isComputingRequirementSignature () const ;
5377
5373
Original file line number Diff line number Diff line change @@ -1188,9 +1188,13 @@ namespace {
1188
1188
printCommon (PD, " protocol" , label);
1189
1189
1190
1190
if (PD->isRequirementSignatureComputed ()) {
1191
- auto requirements = PD->getRequirementSignatureAsGenericSignature ();
1192
- std::string reqSigStr = requirements->getAsString ();
1193
- printFieldQuoted (reqSigStr, " requirement_signature" );
1191
+ auto reqSig = PD->getRequirementSignature ();
1192
+
1193
+ std::string reqSigStr;
1194
+ llvm::raw_string_ostream out (reqSigStr);
1195
+ reqSig.print (PD, out);
1196
+
1197
+ printFieldQuoted (out.str (), " requirement_signature" );
1194
1198
} else {
1195
1199
printFlag (" uncomputed_requirement_signature" );
1196
1200
}
Original file line number Diff line number Diff line change @@ -6738,12 +6738,6 @@ RequirementSignature ProtocolDecl::getRequirementSignature() const {
6738
6738
RequirementSignature ());
6739
6739
}
6740
6740
6741
- GenericSignature ProtocolDecl::getRequirementSignatureAsGenericSignature () const {
6742
- return GenericSignature::get (
6743
- {getSelfInterfaceType ()->castTo <GenericTypeParamType>()},
6744
- getRequirementSignature ().getRequirements ());
6745
- }
6746
-
6747
6741
bool ProtocolDecl::isComputingRequirementSignature () const {
6748
6742
return getASTContext ().evaluator .hasActiveRequest (
6749
6743
RequirementSignatureRequest{const_cast <ProtocolDecl*>(this )});
You can’t perform that action at this time.
0 commit comments