summaryrefslogtreecommitdiffstats
path: root/llvm/docs
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2010-07-21 18:54:18 +0000
committerDan Gohman <gohman@apple.com>2010-07-21 18:54:18 +0000
commit093cb79d4bcbe3cb8fd0bda40137e2c9415b67f1 (patch)
tree0a0fd9c767b4815db39b20d0ac7599c879b02832 /llvm/docs
parent99d2cf48382061d77de2c990b6f39babf74e4fca (diff)
downloadbcm5719-llvm-093cb79d4bcbe3cb8fd0bda40137e2c9415b67f1.tar.gz
bcm5719-llvm-093cb79d4bcbe3cb8fd0bda40137e2c9415b67f1.zip
Disallow null as a named metadata operand.
Make MDNode::destroy private. Fix the one thing that used MDNode::destroy, outside of MDNode itself. One should never delete or destroy an MDNode explicitly. MDNodes implicitly go away when there are no references to them (implementation details aside). llvm-svn: 109028
Diffstat (limited to 'llvm/docs')
-rw-r--r--llvm/docs/LangRef.html8
1 files changed, 5 insertions, 3 deletions
diff --git a/llvm/docs/LangRef.html b/llvm/docs/LangRef.html
index 4c635d3a5aa..42ae0ae4b14 100644
--- a/llvm/docs/LangRef.html
+++ b/llvm/docs/LangRef.html
@@ -949,15 +949,17 @@ define [<a href="#linkage">linkage</a>] [<a href="#visibility">visibility</a>]
<div class="doc_text">
<p>Named metadata is a collection of metadata. <a href="#metadata">Metadata
- nodes</a> (but not metadata strings) and null are the only valid operands for
+ nodes</a> (but not metadata strings) are the only valid operands for
a named metadata.</p>
<h5>Syntax:</h5>
<pre class="doc_code">
-; An unnamed metadata node, which is referenced by the named metadata.
+; Some unnamed metadata nodes, which are referenced by the named metadata.
+!0 = metadata !{metadata !"zero"}
!1 = metadata !{metadata !"one"}
+!2 = metadata !{metadata !"two"}
; A named metadata.
-!name = !{null, !1}
+!name = !{!0, !1, !2}
</pre>
</div>
OpenPOWER on IntegriCloud