File tree Expand file tree Collapse file tree 2 files changed +17
-13
lines changed Expand file tree Collapse file tree 2 files changed +17
-13
lines changed Original file line number Diff line number Diff line change @@ -476,6 +476,23 @@ swift::extractNearestSourceLoc(const ClangRecordMemberLookupDescriptor &desc) {
476
476
return extractNearestSourceLoc (desc.recordDecl );
477
477
}
478
478
479
+ // ----------------------------------------------------------------------------//
480
+ // CustomRefCountingOperation computation.
481
+ // ----------------------------------------------------------------------------//
482
+
483
+ void swift::simple_display (llvm::raw_ostream &out,
484
+ CustomRefCountingOperationDescriptor desc) {
485
+ out << " Finding custom (foreign reference) reference counting operation '"
486
+ << (desc.kind == CustomRefCountingOperationKind::retain ? " retain"
487
+ : " release" )
488
+ << " for '" << desc.decl ->getNameStr () << " '.\n " ;
489
+ }
490
+
491
+ SourceLoc
492
+ swift::extractNearestSourceLoc (CustomRefCountingOperationDescriptor desc) {
493
+ return SourceLoc ();
494
+ }
495
+
479
496
// Implement the clang importer type zone.
480
497
#define SWIFT_TYPEID_ZONE ClangImporter
481
498
#define SWIFT_TYPEID_HEADER " swift/ClangImporter/ClangImporterTypeIDZone.def"
Original file line number Diff line number Diff line change @@ -6119,16 +6119,3 @@ CustomRefCountingOperationResult CustomRefCountingOperation::evaluate(
6119
6119
6120
6120
return {CustomRefCountingOperationResult::tooManyFound, nullptr , name};
6121
6121
}
6122
-
6123
- void swift::simple_display (llvm::raw_ostream &out,
6124
- CustomRefCountingOperationDescriptor desc) {
6125
- out << " Finding custom (foreign reference) reference counting operation '"
6126
- << (desc.kind == CustomRefCountingOperationKind::retain ? " retain"
6127
- : " release" )
6128
- << " for '" << desc.decl ->getNameStr () << " '.\n " ;
6129
- }
6130
-
6131
- SourceLoc
6132
- swift::extractNearestSourceLoc (CustomRefCountingOperationDescriptor desc) {
6133
- return SourceLoc ();
6134
- }
You can’t perform that action at this time.
0 commit comments