@@ -557,15 +557,12 @@ ReabstractionInfo::ReabstractionInfo(ApplySite Apply, SILFunction *Callee,
557
557
if (SpecializedSubstFnTy != SpecializedCalleeSubstFnTy) {
558
558
llvm::dbgs () << " SpecializedFnTy:\n " << SpecializedFnTy << " \n " ;
559
559
llvm::dbgs () << " SpecializedSubstFnTy:\n " << SpecializedSubstFnTy << " \n " ;
560
- for (auto Sub : getCallerParamSubstitutions ()) {
561
- llvm::dbgs () << " Sub:\n " ;
562
- Sub.dump ();
563
- }
560
+ getCallerParamSubstitutionMap ().getCanonical ().dump (llvm::dbgs ());
564
561
llvm::dbgs () << " \n\n " ;
565
562
566
563
llvm::dbgs () << " CalleeFnTy:\n " << CalleeFnTy << " \n " ;
567
564
llvm::dbgs () << " SpecializedCalleeSubstFnTy:\n " << SpecializedCalleeSubstFnTy << " \n " ;
568
- ParamSubs.dump (llvm::dbgs ());
565
+ ParamSubs.getCanonical (). dump (llvm::dbgs ());
569
566
llvm::dbgs () << " \n\n " ;
570
567
assert (SpecializedSubstFnTy == SpecializedCalleeSubstFnTy &&
571
568
" Substituted function types should be the same" );
@@ -595,20 +592,13 @@ ReabstractionInfo::ReabstractionInfo(ApplySite Apply, SILFunction *Callee,
595
592
llvm::dbgs () << " Callee generic function type:\n "
596
593
<< Callee->getLoweredFunctionType () << " \n\n " ;
597
594
llvm::dbgs () << " Callee's call substitution:\n " ;
598
- for (auto Sub : getCalleeParamSubstitutions ()) {
599
- llvm::dbgs () << " Sub:\n " ;
600
- Sub.dump ();
601
- llvm::dbgs () << " \n " ;
602
- }
595
+ getCalleeParamSubstitutionMap ().getCanonical ().dump (llvm::dbgs ());
603
596
604
597
llvm::dbgs () << " Partially specialized generic function type:\n "
605
598
<< getSpecializedType () << " \n\n " ;
606
599
llvm::dbgs () << " \n Specialization call substitution:\n " ;
607
- for (auto Sub : getCallerParamSubstitutions ()) {
608
- llvm::dbgs () << " Sub:\n " ;
609
- Sub.dump ();
610
- llvm::dbgs () << " \n " ;
611
- });
600
+ getCallerParamSubstitutionMap ().getCanonical ().dump (llvm::dbgs ());
601
+ );
612
602
}
613
603
}
614
604
0 commit comments