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 | a168fc98dedfc8cac01c34f84b699fe5f48ad76d (patch) | |
tree | ebdd7fc62b19bc9bdb7cc03563fd817d3943f17e /docs | |
parent | ef4bf3b063ea20732c4647c6f2d5d77caf907578 (diff) | |
download | external_llvm-a168fc98dedfc8cac01c34f84b699fe5f48ad76d.zip external_llvm-a168fc98dedfc8cac01c34f84b699fe5f48ad76d.tar.gz external_llvm-a168fc98dedfc8cac01c34f84b699fe5f48ad76d.tar.bz2 |
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')
-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 e097c2a..5eef225 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> |