[PATCH] D30977: [CodeGen] Emit a CoreFoundation link guard when @available is used

John McCall via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Mar 15 07:56:11 PDT 2017


rjmccall added inline comments.


================
Comment at: lib/CodeGen/CGObjC.cpp:3435
+      CheckFTy, "__clang_at_available_requires_core_foundation_framework"));
+  CFLinkCheckFunc->setLinkage(llvm::GlobalValue::LinkOnceAnyLinkage);
+  CodeGenFunction CGF(*this);
----------------
Is this a public weak symbol?  Make it hidden, please.

Did you consider just adding "-framework CoreFoundation"  to the module link options?


Repository:
  rL LLVM

https://reviews.llvm.org/D30977





More information about the cfe-commits mailing list