@@ -67,40 +67,16 @@ llvm::cl::opt<bool> SILPrintInliningCallerAfter(
67
67
// Printing Helpers
68
68
// ===----------------------------------------------------------------------===//
69
69
70
- extern bool isFunctionSelectedForPrinting (SILFunction *F);
70
+ extern void printInliningDetailsCallee (StringRef passName, SILFunction *caller,
71
+ SILFunction *callee);
71
72
72
- static void printInliningDetails (StringRef passName, SILFunction *caller,
73
- SILFunction *callee, bool isCaller,
74
- bool alreadyInlined) {
75
- if (!isFunctionSelectedForPrinting (caller))
76
- return ;
77
- llvm::dbgs () << " " << passName
78
- << (alreadyInlined ? " has inlined " : " will inline " )
79
- << callee->getName () << " into " << caller->getName () << " .\n " ;
80
- auto *printee = isCaller ? caller : callee;
81
- printee->dump (caller->getModule ().getOptions ().EmitVerboseSIL );
82
- llvm::dbgs () << ' \n ' ;
83
- }
84
-
85
- static void printInliningDetailsCallee (StringRef passName, SILFunction *caller,
86
- SILFunction *callee) {
87
- printInliningDetails (passName, caller, callee, /* isCaller=*/ false ,
88
- /* alreadyInlined=*/ false );
89
- }
90
-
91
- static void printInliningDetailsCallerBefore (StringRef passName,
73
+ extern void printInliningDetailsCallerBefore (StringRef passName,
92
74
SILFunction *caller,
93
- SILFunction *callee) {
94
- printInliningDetails (passName, caller, callee, /* isCaller=*/ true ,
95
- /* alreadyInlined=*/ false );
96
- }
75
+ SILFunction *callee);
97
76
98
- static void printInliningDetailsCallerAfter (StringRef passName,
77
+ extern void printInliningDetailsCallerAfter (StringRef passName,
99
78
SILFunction *caller,
100
- SILFunction *callee) {
101
- printInliningDetails (passName, caller, callee, /* isCaller=*/ true ,
102
- /* alreadyInlined=*/ true );
103
- }
79
+ SILFunction *callee);
104
80
105
81
// ===----------------------------------------------------------------------===//
106
82
// Performance Inliner
0 commit comments