File tree Expand file tree Collapse file tree 2 files changed +364
-321
lines changed Expand file tree Collapse file tree 2 files changed +364
-321
lines changed Original file line number Diff line number Diff line change @@ -191,6 +191,11 @@ class ConstraintLocator : public llvm::FoldingSetNode {
191
191
bool isClosureResult () const {
192
192
return getKind () == PathElementKind::ClosureResult;
193
193
}
194
+
195
+ void dump (raw_ostream &out) const LLVM_ATTRIBUTE_USED;
196
+ SWIFT_DEBUG_DUMP {
197
+ dump (llvm::errs ());
198
+ }
194
199
};
195
200
196
201
// / Return the summary flags for an entire path.
@@ -1256,6 +1261,12 @@ class ConstraintLocatorBuilder {
1256
1261
1257
1262
return None;
1258
1263
}
1264
+
1265
+ // / Produce a debugging dump of this locator.
1266
+ SWIFT_DEBUG_DUMPER (dump(SourceManager *SM));
1267
+ SWIFT_DEBUG_DUMPER (dump(ConstraintSystem *CS));
1268
+
1269
+ void dump (SourceManager *SM, raw_ostream &OS) const LLVM_ATTRIBUTE_USED;
1259
1270
};
1260
1271
1261
1272
} // end namespace constraints
You can’t perform that action at this time.
0 commit comments