LangRef: add a note about the mangling-suppressing \01 prefix
authorHans Wennborg <hans@hanshq.net>
Wed, 30 Jul 2014 20:02:08 +0000 (20:02 +0000)
committerHans Wennborg <hans@hanshq.net>
Wed, 30 Jul 2014 20:02:08 +0000 (20:02 +0000)
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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@214329 91177308-0d34-0410-b5e6-96231b3b80d8

docs/LangRef.rst

index cc801f713132858ce6eb4ae711aec8ca6742e3cb..20f9813c01a9761f2ace0a32b1378109f19eaa14 100644 (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.