================ @@ -101,6 +101,19 @@ class ARCRuntimeEntryPoints { llvm_unreachable("Switch should be a covered switch."); } + bool moduleContainsARCEntryPoints() { + assert(TheModule != nullptr && "Not initialized."); + + for (auto ARCInstricID : + enum_seq_inclusive(Intrinsic::objc_arc_annotation_bottomup_bbend, ---------------- NuriAmari wrote:
Bit fragile if new arc intrinsics are added, or they are re-arranged, but not sure what else to do. Perhaps giving the sequence a name indicating it is the canonical representation of "all arc intrinsics" will help it stay up to date. https://github.com/llvm/llvm-project/pull/92331 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits