Add a clarification about merging constants with and without unnamed_addr.
authorRafael Espindola <rafael.espindola@gmail.com>
Sat, 15 Jan 2011 08:20:57 +0000 (08:20 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Sat, 15 Jan 2011 08:20:57 +0000 (08:20 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@123530 91177308-0d34-0410-b5e6-96231b3b80d8

docs/LangRef.html

index 2121fc67408e8b6b923861acb4f2d378317286ef..5a53c9aed4e69ed3b5e68bb829be9a12f68040bb 100644 (file)
@@ -848,7 +848,10 @@ define i32 @main() {   <i>; i32()* </i>&nbsp;
 
 <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