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

Hans Wennborg hans at chromium.org
Wed Jul 30 11:48:55 PDT 2014


Hi rnk,

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

http://reviews.llvm.org/D4728

Files:
  docs/LangRef.rst

Index: docs/LangRef.rst
===================================================================
--- docs/LangRef.rst
+++ docs/LangRef.rst
@@ -79,7 +79,8 @@
    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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D4728.12039.patch
Type: text/x-patch
Size: 747 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140730/82bed054/attachment.bin>


More information about the llvm-commits mailing list