summaryrefslogtreecommitdiffstats
path: root/llvm/docs
diff options
context:
space:
mode:
authorNick Lewycky <nicholas@mxc.ca>2014-08-13 04:54:05 +0000
committerNick Lewycky <nicholas@mxc.ca>2014-08-13 04:54:05 +0000
commita0de40aa6c3071dbe5f4c4d4e6d9adcf4e6d2787 (patch)
tree2f2831511be5b64276c63b36869133853292384f /llvm/docs
parentf7b06d6411cbf98d03df0187e667c6cb77ea59a0 (diff)
downloadbcm5719-llvm-a0de40aa6c3071dbe5f4c4d4e6d9adcf4e6d2787.tar.gz
bcm5719-llvm-a0de40aa6c3071dbe5f4c4d4e6d9adcf4e6d2787.zip
Fix examples of "named metadata" (some of which isn't named).
llvm-svn: 215522
Diffstat (limited to 'llvm/docs')
-rw-r--r--llvm/docs/LangRef.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/docs/LangRef.rst b/llvm/docs/LangRef.rst
index 69816cc8141..bcf4f651829 100644
--- a/llvm/docs/LangRef.rst
+++ b/llvm/docs/LangRef.rst
@@ -169,8 +169,8 @@ symbol table entries. Here is an example of the "hello world" module:
}
; 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
OpenPOWER on IntegriCloud