File tree 1 file changed +17
-0
lines changed
1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -1164,6 +1164,11 @@ namespace {
1164
1164
return funcTy->getResult ();
1165
1165
return Type ();
1166
1166
}
1167
+
1168
+ void dump () const {
1169
+ decl->dumpRef (llvm::errs ());
1170
+ llvm::errs () << " - uncurry level " << level << " \n " ;
1171
+ }
1167
1172
};
1168
1173
1169
1174
@@ -1217,11 +1222,23 @@ namespace {
1217
1222
void suggestPotentialOverloads (SourceLoc loc, bool isCallExpr = false ,
1218
1223
bool isResult = false );
1219
1224
1225
+ void dump () const LLVM_ATTRIBUTE_USED;
1226
+
1220
1227
private:
1221
1228
void collectCalleeCandidates (Expr *fnExpr);
1222
1229
};
1223
1230
}
1224
1231
1232
+ void CalleeCandidateInfo::dump () const {
1233
+ llvm::errs () << " CalleeCandidateInfo for '" << declName << " ': closeness="
1234
+ << unsigned (closeness) << " \n " ;
1235
+ llvm::errs () << candidates.size () << " candidates:\n " ;
1236
+ for (auto c : candidates) {
1237
+ llvm::errs () << " " ;
1238
+ c.dump ();
1239
+ }
1240
+ }
1241
+
1225
1242
1226
1243
// / Given a candidate list, this computes the narrowest closeness to the match
1227
1244
// / we're looking for and filters out any worse matches. The predicate
You can’t perform that action at this time.
0 commit comments