summaryrefslogtreecommitdiffstats
path: root/llvm/docs
diff options
context:
space:
mode:
authorSean Silva <chisophugis@gmail.com>2015-01-07 21:35:14 +0000
committerSean Silva <chisophugis@gmail.com>2015-01-07 21:35:14 +0000
commit9d01a5b5e4432ef56b3cfdd3ea56a140ee9326ab (patch)
treecfb7e31327d67873af1142025828115c75ab65bc /llvm/docs
parentd88af278b9b3984471a00aed892bdc25e2dd1159 (diff)
downloadbcm5719-llvm-9d01a5b5e4432ef56b3cfdd3ea56a140ee9326ab.tar.gz
bcm5719-llvm-9d01a5b5e4432ef56b3cfdd3ea56a140ee9326ab.zip
[LangRef] PR22118: Hyphen is allowed in IR identifiers.
E.g. %-foo and %fo-o. Thanks to eagle-eyed reporter Tomas Brukner. llvm-svn: 225400
Diffstat (limited to 'llvm/docs')
-rw-r--r--llvm/docs/LangRef.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/docs/LangRef.rst b/llvm/docs/LangRef.rst
index 519fe2069ef..5238fe90d30 100644
--- a/llvm/docs/LangRef.rst
+++ b/llvm/docs/LangRef.rst
@@ -75,7 +75,7 @@ identifiers, for different purposes:
#. Named values are represented as a string of characters with their
prefix. For example, ``%foo``, ``@DivisionByZero``,
``%a.really.long.identifier``. The actual regular expression used is
- '``[%@][a-zA-Z$._][a-zA-Z$._0-9]*``'. Identifiers that require other
+ '``[%@][-a-zA-Z$._][-a-zA-Z$._0-9]*``'. Identifiers that require other
characters in their names can be surrounded with quotes. Special
characters may be escaped using ``"\xx"`` where ``xx`` is the ASCII
code for the character in hexadecimal. In this way, any character can
OpenPOWER on IntegriCloud