summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2013-10-27 04:19:29 +0000
committerBill Wendling <isanbard@gmail.com>2013-10-27 04:19:29 +0000
commite9d5c4809d9ad42500a423d0682011ab14142a52 (patch)
tree8c59fab2f2d75ff2bae5896cac11b2851f73fc0e
parent27f96dae10230571dc37f30b25ab7554cf6dd116 (diff)
downloadbcm5719-llvm-e9d5c4809d9ad42500a423d0682011ab14142a52.tar.gz
bcm5719-llvm-e9d5c4809d9ad42500a423d0682011ab14142a52.zip
Update to specify that both metadata and label types aren't proper return types.
PR15447 llvm-svn: 193492
-rw-r--r--llvm/docs/LangRef.rst17
1 files changed, 9 insertions, 8 deletions
diff --git a/llvm/docs/LangRef.rst b/llvm/docs/LangRef.rst
index b75c6b1b80f..e81fda43ce0 100644
--- a/llvm/docs/LangRef.rst
+++ b/llvm/docs/LangRef.rst
@@ -1752,9 +1752,10 @@ Function Type
Overview:
"""""""""
-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 first class type or a void type.
+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 void type or first class type --- except for :ref:`label <t_label>`
+and :ref:`metadata <t_metadata>` types.
Syntax:
"""""""
@@ -1764,11 +1765,11 @@ Syntax:
<returntype> (<parameter list>)
...where '``<parameter list>``' is a comma-separated list of type
-specifiers. Optionally, the parameter list may include a type ``...``,
-which indicates that the function takes a variable number of arguments.
-Variable argument functions can access their arguments with the
-:ref:`variable argument handling intrinsic <int_varargs>` functions.
-'``<returntype>``' is any type except :ref:`label <t_label>`.
+specifiers. Optionally, the parameter list may include a type ``...``, which
+indicates that the function takes a variable number of arguments. Variable
+argument functions can access their arguments with the :ref:`variable argument
+handling intrinsic <int_varargs>` functions. '``<returntype>``' is any type
+except :ref:`label <t_label>` and :ref:`metadata <t_metadata>`.
Examples:
"""""""""
OpenPOWER on IntegriCloud