LangRef: add a note about the mangling-suppressing \01 prefix

Someone asked about this on IRC the other day, and I couldn't
find the magic prefix documented anywhere.

Differential Revision: http://reviews.llvm.org/D4728

llvm-svn: 214329
This commit is contained in:
Hans Wennborg 2014-07-30 20:02:08 +00:00
parent f21434ccb0
commit 85e065386c
1 changed files with 2 additions and 1 deletions

View File

@ -79,7 +79,8 @@ identifiers, for different purposes:
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
be used in a name value, even quotes themselves.
be used in a name value, even quotes themselves. The ``"\01"`` prefix
can be used on global variables to suppress mangling.
#. Unnamed values are represented as an unsigned numeric value with
their prefix. For example, ``%12``, ``@2``, ``%44``.
#. Constants, which are described in the section Constants_ below.