[llvm] r215522 - Fix examples of "named metadata" (some of which isn't named).

Nick Lewycky nicholas at mxc.ca
Tue Aug 12 21:54:06 PDT 2014


Author: nicholas
Date: Tue Aug 12 23:54:05 2014
New Revision: 215522

URL: http://llvm.org/viewvc/llvm-project?rev=215522&view=rev
Log:
Fix examples of "named metadata" (some of which isn't named).

Modified:
    llvm/trunk/docs/LangRef.rst

Modified: llvm/trunk/docs/LangRef.rst
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/docs/LangRef.rst?rev=215522&r1=215521&r2=215522&view=diff
==============================================================================
--- llvm/trunk/docs/LangRef.rst (original)
+++ llvm/trunk/docs/LangRef.rst Tue Aug 12 23:54:05 2014
@@ -169,8 +169,8 @@ symbol table entries. Here is an example
     }
 
     ; Named metadata
-    !1 = metadata !{i32 42}
-    !foo = !{!1, null}
+    !0 = metadata !{i32 42, null, metadata !"string"}
+    !foo = !{!0}
 
 This example is made up of a :ref:`global variable <globalvars>` named
 "``.str``", an external declaration of the "``puts``" function, a





More information about the llvm-commits mailing list