Skip to content
Snippets Groups Projects
Commit fa49f86c authored by Reid Spencer's avatar Reid Spencer
Browse files

bug 122:

Updated to remove references to ConstantPointerRef and reflect the change
in the inheritance hierarchy: GlobalValue now derives from Constant.

llvm-svn: 14969
parent 3b4e83ec
No related branches found
No related tags found
No related merge requests found
...@@ -89,15 +89,18 @@ with another <tt>Value</tt></a> </li> ...@@ -89,15 +89,18 @@ with another <tt>Value</tt></a> </li>
<li><a href="#GetElementPtrInst">The <tt>GetElementPtrInst</tt> <li><a href="#GetElementPtrInst">The <tt>GetElementPtrInst</tt>
class</a></li> class</a></li>
</ul></li> </ul></li>
<li><a href="#GlobalValue">The <tt>GlobalValue</tt> class</a>
<ul>
<li><a href="#BasicBlock">The <tt>BasicBlock</tt>class</a></li>
<li><a href="#Function">The <tt>Function</tt> class</a></li>
<li><a href="#GlobalVariable">The <tt>GlobalVariable</tt> class
</a></li>
</ul></li>
<li><a href="#Module">The <tt>Module</tt> class</a></li> <li><a href="#Module">The <tt>Module</tt> class</a></li>
<li><a href="#Constant">The <tt>Constant</tt> class</a></li> <li><a href="#Constant">The <tt>Constant</tt> class</a>
<ul>
<li><a href="#GlobalValue">The <tt>GlobalValue</tt> class</a>
<ul>
<li><a href="#BasicBlock">The <tt>BasicBlock</tt>class</a></li>
<li><a href="#Function">The <tt>Function</tt> class</a></li>
<li><a href="#GlobalVariable">The <tt>GlobalVariable</tt> class
</a></li>
</ul></li>
</ul>
</li>
<li><a href="#Type">The <tt>Type</tt> class</a> </li> <li><a href="#Type">The <tt>Type</tt> class</a> </li>
<li><a href="#Argument">The <tt>Argument</tt> class</a></li> <li><a href="#Argument">The <tt>Argument</tt> class</a></li>
</ul></li> </ul></li>
...@@ -1258,7 +1261,7 @@ Because they are visible at global scope, they are also subject to linking with ...@@ -1258,7 +1261,7 @@ Because they are visible at global scope, they are also subject to linking with
other globals defined in different translation units. To control the linking other globals defined in different translation units. To control the linking
process, <tt>GlobalValue</tt>s know their linkage rules. Specifically, process, <tt>GlobalValue</tt>s know their linkage rules. Specifically,
<tt>GlobalValue</tt>s know whether they have internal or external linkage, as <tt>GlobalValue</tt>s know whether they have internal or external linkage, as
defined by the <tt>LinkageTypes</tt> enumerator.</p> defined by the <tt>LinkageTypes</tt> enumeration.</p>
<p>If a <tt>GlobalValue</tt> has internal linkage (equivalent to being <p>If a <tt>GlobalValue</tt> has internal linkage (equivalent to being
<tt>static</tt> in C), it is not visible to code outside the current translation <tt>static</tt> in C), it is not visible to code outside the current translation
...@@ -1353,6 +1356,9 @@ href="#Instruction"><tt>Instruction</tt></a>s, <a ...@@ -1353,6 +1356,9 @@ href="#Instruction"><tt>Instruction</tt></a>s, <a
href="#BasicBlock"><tt>BasicBlock</tt></a>s, or <a href="#BasicBlock"><tt>BasicBlock</tt></a>s, or <a
href="#Argument"><tt>Argument</tt></a>s in the function body.</p> href="#Argument"><tt>Argument</tt></a>s in the function body.</p>
<p>Note that <tt>Function</tt> is a <a href="#GlobalValue">GlobalValue</a>
and therefore also a <a href="#Constant">Constant</a>. The value of the function
is its address (after linking) which is guaranteed to be constant.</p>
</div> </div>
<!-- _______________________________________________________________________ --> <!-- _______________________________________________________________________ -->
...@@ -1698,18 +1704,13 @@ Returns a Vecotr of component constants that makeup this array. </li> ...@@ -1698,18 +1704,13 @@ Returns a Vecotr of component constants that makeup this array. </li>
Returns a Vecotr of component constants that makeup this array. </li> Returns a Vecotr of component constants that makeup this array. </li>
</ul> </ul>
</li> </li>
<li>ConstantPointerRef : This represents a constant pointer value <li>GlobalValue : This represents either a global variable or a
that is initialized to point to a global value, which lies at a function. In either case, the value is a constant fixed address
constant fixed address. (after linking).
<ul>
<li><tt>GlobalValue *getValue()</tt>: Returns the global
value to which this pointer is pointing to. </li>
</ul>
</li> </li>
</ul> </ul>
</li> </li>
</ul> </ul>
</div> </div>
<!-- ======================================================================= --> <!-- ======================================================================= -->
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment