Fixed a small grammatical error.
authorJohn Criswell <criswell@uiuc.edu>
Tue, 25 Nov 2003 21:45:46 +0000 (21:45 +0000)
committerJohn Criswell <criswell@uiuc.edu>
Tue, 25 Nov 2003 21:45:46 +0000 (21:45 +0000)
Explained that function return types cannot be aggregate types.
Explained that functions with the same name but different type signatures
are considered to be different functions.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10230 91177308-0d34-0410-b5e6-96231b3b80d8

docs/LangRef.html

index 05de0bd4cfbb032ddfebb061c5badc6f4eb953b6..553035ef6e83012af37071a8b9a63a39ad7f9dbe 100644 (file)
@@ -407,9 +407,12 @@ be any type with a size.</p>
 <h5>Overview:</h5>
 <p>The function type can be thought of as a function signature.  It
 consists of a return type and a list of formal parameter types. 
-Function types are usually used when to build virtual function tables
+Function types are usually used to build virtual function tables
 (which are structures of pointers to functions), for indirect function
 calls, and when defining a function.</p>
+<p>
+The return type of a function type cannot be an aggregate type.
+</p>
 <h5>Syntax:</h5>
 <pre>  &lt;returntype&gt; (&lt;parameter list&gt;)<br></pre>
 <p>Where '<tt>&lt;parameter list&gt;</tt>' is a comma-separated list of
@@ -638,6 +641,12 @@ immediately executed on entrance to the function, and it is not allowed
 to have predecessor basic blocks (i.e. there can not be any branches to
 the entry block of a function).  Because the block can have no
 predecessors, it also cannot have any <a href="#i_phi">PHI nodes</a>.</p>
+<p>
+LLVM functions are identified by their name and type signature.  Hence, two
+functions with the same name but different parameter lists or return values
+are considered different functions, and LLVM will resolves references to each
+appropriately.
+</p>
 </div>
 <!-- *********************************************************************** -->
 <div class="doc_section"> <a name="instref">Instruction Reference</a> </div>