summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-08-24 04:32:16 +0000
committerChris Lattner <sabre@nondot.org>2009-08-24 04:32:16 +0000
commite1eaf916f07839c6b4ea8dbdae3884ed31d61c38 (patch)
tree44375652d26a290dd02c32b1852f375ed9299234
parent8da76367c5d6beadd520d35aef77e6d47996ea19 (diff)
downloadllvm-e1eaf916f07839c6b4ea8dbdae3884ed31d61c38.tar.gz
llvm-e1eaf916f07839c6b4ea8dbdae3884ed31d61c38.tar.bz2
llvm-e1eaf916f07839c6b4ea8dbdae3884ed31d61c38.tar.xz
improve documentation for linker_private linkage.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79893 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--docs/LangRef.html6
1 files changed, 5 insertions, 1 deletions
diff --git a/docs/LangRef.html b/docs/LangRef.html
index 384c1201fa..ab86271f33 100644
--- a/docs/LangRef.html
+++ b/docs/LangRef.html
@@ -529,7 +529,11 @@ define i32 @main() { <i>; i32()* </
<dt><tt><b><a name="linkage_linker_private">linker_private</a></b></tt>: </dt>
<dd>Similar to private, but the symbol is passed through the assembler and
- removed by the linker after evaluation.</dd>
+ removed by the linker after evaluation. Note that (unlike private
+ symbols) linker_private symbols are subject to coalescing by the linker:
+ weak symbols get merged and redefinitions are rejected. However, unlike
+ normal strong symbols, they are removed by the linker from the final
+ linked image (executable or dynamic library).</dd>
<dt><tt><b><a name="linkage_internal">internal</a></b></tt>: </dt>
<dd>Similar to private, but the value shows as a local symbol