You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fprintf(stderr, "[%s:%d] (%s) SET AD HOC WITNESS [%s] ON [%s]\n", __FILE__, __LINE__, __FUNCTION__, f->getName().str().c_str(), this->getName().str().c_str());
503
+
f->dump();
504
+
505
+
if (f == nullptr)
506
+
return;
507
+
AdHocRequirementFunction = f;
508
+
AdHocRequirementFunction->incrementRefCount();
509
+
}
510
+
voiddropAdHocRequirementFunction() {
511
+
if (!AdHocRequirementFunction)
512
+
return;
513
+
AdHocRequirementFunction->decrementRefCount();
514
+
AdHocRequirementFunction = nullptr;
515
+
}
516
+
487
517
boolhasObjCReplacement() const {
488
518
return !ObjCReplacementFor.empty();
489
519
}
@@ -758,6 +788,15 @@ class SILFunction
758
788
IsDynamicReplaceable = value;
759
789
assert(!Transparent || !IsDynamicReplaceable);
760
790
}
791
+
792
+
/// Returns whether this function implementation can be dynamically replaced.
0 commit comments