diff options
| author | Dan Gohman <gohman@apple.com> | 2010-07-21 18:54:18 +0000 |
|---|---|---|
| committer | Dan Gohman <gohman@apple.com> | 2010-07-21 18:54:18 +0000 |
| commit | 94e59a01f9c8930c75906988d293b93d01d1c59b (patch) | |
| tree | 8abc3d283bd51ea3430c80b7c69f84b8e6067010 /docs/LangRef.html | |
| parent | b552a019ddcee11b13eba737800ca7f6a406befc (diff) | |
| download | external_llvm-94e59a01f9c8930c75906988d293b93d01d1c59b.zip external_llvm-94e59a01f9c8930c75906988d293b93d01d1c59b.tar.gz external_llvm-94e59a01f9c8930c75906988d293b93d01d1c59b.tar.bz2 | |
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).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@109028 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'docs/LangRef.html')
| -rw-r--r-- | docs/LangRef.html | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/docs/LangRef.html b/docs/LangRef.html index 4c635d3..42ae0ae 100644 --- a/docs/LangRef.html +++ b/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> |
