diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2011-01-15 08:20:57 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2011-01-15 08:20:57 +0000 |
commit | f1ed781aea4646b260a78222ae64aa7d7a1e4c49 (patch) | |
tree | 72bf651be26aa7ebd33b811830b8fcd6631bfae5 /llvm/docs/LangRef.html | |
parent | 489e505adfe9b216aecc29a2a8eb9490a4a53c61 (diff) | |
download | bcm5719-llvm-f1ed781aea4646b260a78222ae64aa7d7a1e4c49.tar.gz bcm5719-llvm-f1ed781aea4646b260a78222ae64aa7d7a1e4c49.zip |
Add a clarification about merging constants with and without unnamed_addr.
llvm-svn: 123530
Diffstat (limited to 'llvm/docs/LangRef.html')
-rw-r--r-- | llvm/docs/LangRef.html | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/llvm/docs/LangRef.html b/llvm/docs/LangRef.html index 2121fc67408..5a53c9aed4e 100644 --- a/llvm/docs/LangRef.html +++ b/llvm/docs/LangRef.html @@ -848,7 +848,10 @@ define i32 @main() { <i>; i32()* </i> <p>Global variables can be marked with <tt>unnamed_addr</tt> which indicates that the address is not significant, only the content. Constants marked - like this can be merged if they have the same content.</p> + like this can be merged with other constants if they have the same + initializer. Note that a constant with significant address <em>can</em> + be merged with a <tt>unnamed_addr</tt> constant, the result being a + constant whose address is significant.</p> <p>A global variable may be declared to reside in a target-specific numbered address space. For targets that support them, address spaces may affect how |