diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2009-01-15 20:18:42 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2009-01-15 20:18:42 +0000 |
commit | bb46f52027416598a662dc1c58f48d9d56b1a65b (patch) | |
tree | ebdd7fc62b19bc9bdb7cc03563fd817d3943f17e /docs/LangRef.html | |
parent | f193ff05909c2de373032f773e76804474b1ef4e (diff) |
Add the private linkage.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@62279 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'docs/LangRef.html')
-rw-r--r-- | docs/LangRef.html | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/docs/LangRef.html b/docs/LangRef.html index e097c2a84c..5eef225326 100644 --- a/docs/LangRef.html +++ b/docs/LangRef.html @@ -480,13 +480,20 @@ All Global Variables and Functions have one of the following types of linkage: <dl> - <dt><tt><b><a name="linkage_internal">internal</a></b></tt>: </dt> + <dt><tt><b><a name="linkage_private">private</a></b></tt>: </dt> - <dd>Global values with internal linkage are only directly accessible by + <dd>Global values with private linkage are only directly accessible by objects in the current module. In particular, linking code into a module with - an internal global value may cause the internal to be renamed as necessary to - avoid collisions. Because the symbol is internal to the module, all - references can be updated. This corresponds to the notion of the + an private global value may cause the private to be renamed as necessary to + avoid collisions. Because the symbol is private to the module, all + references can be updated. This doesn't show up in any symbol table in the + object file. + </dd> + + <dt><tt><b><a name="linkage_internal">internal</a></b></tt>: </dt> + + <dd> Similar to private, but the value show as a local symbol (STB_LOCAL in + the case of ELF) in the object file. This corresponds to the notion of the '<tt>static</tt>' keyword in C. </dd> |