summaryrefslogtreecommitdiffstats
path: root/llvm/docs
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2008-03-24 20:52:42 +0000
committerDevang Patel <dpatel@apple.com>2008-03-24 20:52:42 +0000
commit9c1f8b1d558f6a36b8815a9c9ba6efe384558389 (patch)
tree67a185144dbb39f190b94ecf57efd3a0df96e0c7 /llvm/docs
parente2707768a45a3bf1604faa107aacdcaf55b549b8 (diff)
downloadbcm5719-llvm-9c1f8b1d558f6a36b8815a9c9ba6efe384558389.tar.gz
bcm5719-llvm-9c1f8b1d558f6a36b8815a9c9ba6efe384558389.zip
void type is also a valid function return type.
llvm-svn: 48740
Diffstat (limited to 'llvm/docs')
-rw-r--r--llvm/docs/LangRef.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/docs/LangRef.html b/llvm/docs/LangRef.html
index e44edf421fd..08cdccf8102 100644
--- a/llvm/docs/LangRef.html
+++ b/llvm/docs/LangRef.html
@@ -1226,8 +1226,8 @@ type "{ i32, [0 x float]}", for example.</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. The
-return type of a function type is a scalar type or a struct type. If the
-return type is a struct type then all struct elements must be of first
+return type of a function type is a scalar type or a void type or a struct type.
+If the return type is a struct type then all struct elements must be of first
class types. 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>
OpenPOWER on IntegriCloud