summaryrefslogtreecommitdiffstats
path: root/clang/docs/LanguageExtensions.html
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2012-03-11 17:21:03 +0000
committerDouglas Gregor <dgregor@apple.com>2012-03-11 17:21:03 +0000
commitc683e4a8e92dba2e988cde52056bbf8c33f520f2 (patch)
treefeb99eff30d0173943dd2f9435906962a754516c /clang/docs/LanguageExtensions.html
parent71b197306e60aed8366c46f8cd824cda873b122b (diff)
downloadbcm5719-llvm-c683e4a8e92dba2e988cde52056bbf8c33f520f2.tar.gz
bcm5719-llvm-c683e4a8e92dba2e988cde52056bbf8c33f520f2.zip
Document the weak-linking behavior of the availability attribute
llvm-svn: 152543
Diffstat (limited to 'clang/docs/LanguageExtensions.html')
-rw-r--r--clang/docs/LanguageExtensions.html6
1 files changed, 6 insertions, 0 deletions
diff --git a/clang/docs/LanguageExtensions.html b/clang/docs/LanguageExtensions.html
index bdb04ac1a5a..cbdebe12dea 100644
--- a/clang/docs/LanguageExtensions.html
+++ b/clang/docs/LanguageExtensions.html
@@ -665,6 +665,12 @@ void f(void) __attribute__((availability(macosx,introduced=10.4,deprecated=10.6,
<dd>Apple's Mac OS X operating system. The minimum deployment target is specified by the <code>-mmacosx-version-min=<i>version</i></code> command-line argument.</dd>
</dl>
+<p>A declaration can be used even when deploying back to a platform
+version prior to when the declaration was introduced. When this
+happens, the declaration is <a
+ href="https://developer.apple.com/library/mac/#documentation/MacOSX/Conceptual/BPFrameworks/Concepts/WeakLinking.html">weakly
+linked</a>, as if the <code>weak_import</code> attribute were added to the declaration. A weakly-linked declaration may or may not be present a run-time, and a program can determine whether the declaration is present by checking whether the address of that declaration is non-NULL.</p>
+
<!-- ======================================================================= -->
<h2 id="checking_language_features">Checks for Standard Language Features</h2>
<!-- ======================================================================= -->
OpenPOWER on IntegriCloud