summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvmc
diff options
context:
space:
mode:
authorMikhail Glushenkov <foldr@codedgers.com>2008-12-17 02:47:01 +0000
committerMikhail Glushenkov <foldr@codedgers.com>2008-12-17 02:47:01 +0000
commit5932d8c9862c0b96500e8f4a1d699bd323d4d2ad (patch)
tree5c5c73a6361fb1df405602ba08948e963128c99d /llvm/tools/llvmc
parent2f521198437240e7539cc903ecbca70b49171cae (diff)
downloadbcm5719-llvm-5932d8c9862c0b96500e8f4a1d699bd323d4d2ad.tar.gz
bcm5719-llvm-5932d8c9862c0b96500e8f4a1d699bd323d4d2ad.zip
Some enhancements for the 'case' expression.
Add (error) and (empty). llvm-svn: 61117
Diffstat (limited to 'llvm/tools/llvmc')
-rw-r--r--llvm/tools/llvmc/doc/LLVMC-Reference.rst9
1 files changed, 8 insertions, 1 deletions
diff --git a/llvm/tools/llvmc/doc/LLVMC-Reference.rst b/llvm/tools/llvmc/doc/LLVMC-Reference.rst
index 66253ee0dca..6189ec21828 100644
--- a/llvm/tools/llvmc/doc/LLVMC-Reference.rst
+++ b/llvm/tools/llvmc/doc/LLVMC-Reference.rst
@@ -387,6 +387,9 @@ use TableGen inheritance instead.
user.
Example: ``(not_empty "o")``.
+ - ``empty`` - The opposite of ``not_empty``. Equivalent to ``(not (not_empty
+ X))``. Provided for convenience.
+
- ``default`` - Always evaluates to true. Should always be the last
test in the ``case`` expression.
@@ -487,7 +490,11 @@ The list of all possible actions follows.
- ``append_cmd`` - append a string to the tool invocation
command.
- Example: ``(case (switch_on "pthread"), (append_cmd "-lpthread"))``
+ Example: ``(case (switch_on "pthread"), (append_cmd
+ "-lpthread"))``
+
+ - ``error` - exit with error.
+ Example: ``(error "Mixing -c and -S is not allowed!")``.
- ``forward`` - forward an option unchanged.
Example: ``(forward "Wall")``.
OpenPOWER on IntegriCloud