File tree Expand file tree Collapse file tree 1 file changed +19
-1
lines changed Expand file tree Collapse file tree 1 file changed +19
-1
lines changed Original file line number Diff line number Diff line change @@ -3654,8 +3654,26 @@ namespace {
3654
3654
3655
3655
void visitSILFunctionType (SILFunctionType *T, StringRef label) {
3656
3656
printCommon (label, " sil_function_type" );
3657
- // FIXME: Print the structure of the type.
3658
3657
printField (" type" , T->getString ());
3658
+
3659
+ for (auto param : T->getParameters ()) {
3660
+ printRec (" input" , param.getInterfaceType ());
3661
+ }
3662
+ for (auto yield : T->getYields ()) {
3663
+ printRec (" yield" , yield.getInterfaceType ());
3664
+ }
3665
+ for (auto result : T->getResults ()) {
3666
+ printRec (" result" , result.getInterfaceType ());
3667
+ }
3668
+ if (auto error = T->getOptionalErrorResult ()) {
3669
+ printRec (" error" , error->getInterfaceType ());
3670
+ }
3671
+ OS << ' \n ' ;
3672
+ T->getPatternSubstitutions ().dump (OS, SubstitutionMap::DumpStyle::Full,
3673
+ Indent+2 );
3674
+ OS << ' \n ' ;
3675
+ T->getInvocationSubstitutions ().dump (OS, SubstitutionMap::DumpStyle::Full,
3676
+ Indent+2 );
3659
3677
PrintWithColorRAII (OS, ParenthesisColor) << ' )' ;
3660
3678
}
3661
3679
You can’t perform that action at this time.
0 commit comments